blog/check_git.sh
2021-02-01 19:25:00 +01:00

9 lines
No EOL
111 B
Bash
Executable file

#!/bin/bash
if git diff-index --quiet HEAD --; then
# no change
exit 0
else
# change
exit 1
fi