routeros-scripts-main/contrib/checksums.sh
Christian Hesse 7d701483d3 contrib/checksums: output to stdout...
... and let the Makefile redirect.
2025-11-19 16:19:59 +01:00

9 lines
240 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'