mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-06-21 02:05:40 +02:00
9 lines
259 B
Bash
Executable file
9 lines
259 B
Bash
Executable file
#!/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'
|