mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-28 05:54:54 +02:00
10 lines
259 B
Bash
10 lines
259 B
Bash
|
#!/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'
|