mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 01:49:28 +00:00
support creating the checksums file
This commit is contained in:
parent
ce39b79f69
commit
f8c3659f6a
3 changed files with 17 additions and 2 deletions
9
contrib/checksums.sh
Executable file
9
contrib/checksums.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
# generate a checksums file as used by $ScriptInstallUpdate
|
||||
|
||||
set -e
|
||||
|
||||
md5sum $(find -name '*.rsc' | sort) | \
|
||||
sed -e "s| \./||" -e 's|.rsc$||' | \
|
||||
jq --raw-input --null-input '[ inputs | split (" ") | { (.[1]): (.[0]) }] | add' > 'checksums.json'
|
||||
Loading…
Add table
Add a link
Reference in a new issue