mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 14:20:23 -04:00
18 lines
236 B
Bash
Executable file
18 lines
236 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
DIFF_PATH=$1
|
|
DIFF=$(git status --porcelain -- "$DIFF_PATH")
|
|
|
|
if [ "$DIFF" ]; then
|
|
echo
|
|
echo "These files were changed:"
|
|
echo
|
|
echo "$DIFF"
|
|
echo
|
|
exit 1
|
|
else
|
|
echo "$DIFF_PATH is correct"
|
|
fi;
|