1 2 3 4 5
#/bin/sh cd "$(dirname "$0")" for script in edit_script.js; do printf "'sha256-%s'" $(shasum -a 256 < $script | cut -d' ' -f1 | xxd -r -p | base64 -w 0) > $script.sha done