Commit ba18a2d3 authored by Joanne Hugé's avatar Joanne Hugé

playbook/util/update-sha256sum: exit if there are untracked or ignored files

parent 59cd859a
Pipeline #28783 failed with stage
in 0 seconds
2771dda4925f3e2343425df08a40868f9af23f200606bc70663051f0470d2e9c -
fcbb3241e80b1fc720c3ead9e551056c40573fac6d94e4f57cc5ea141dff2e91 -
playbook_dir="$(dirname $(realpath $0))/.."
cd $playbook_dir
git ls-files . --ignored --exclude-standard --others | grep . && (echo "Please remove all untracked and ignored files before computing sha256sum"; exit 1)
find . -type f ! -name 'sha256sum' -print0 | LC_ALL=C sort -z | xargs -0 sha256sum | sha256sum > sha256sum
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment