summaryrefslogtreecommitdiff
path: root/set-serial.sh
diff options
context:
space:
mode:
Diffstat (limited to 'set-serial.sh')
-rwxr-xr-xset-serial.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/set-serial.sh b/set-serial.sh
index 08cbe24..bc53cbf 100755
--- a/set-serial.sh
+++ b/set-serial.sh
@@ -19,7 +19,7 @@ for n in "$@"; do
set-serial-number "$n" "$revision"
# Check whether git regards the file as "modified" now. If it does,
# the serial nmuber needs to be bumped one more time.
- if git >/dev/null status -- "$n"; then
+ if ! git diff --quiet --exit-code -- "$n"; then
set-serial-number "$n" "$((revision + 1))"
fi
done