aboutsummaryrefslogtreecommitdiff
path: root/add
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-09-27 06:40:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-09-27 06:40:36 +0200
commit01ee7236a462b07b7e45bb4800920ba1bef88c65 (patch)
treed5d6eedb674b5508674fd5f37f5f663687215e9e /add
parent1c6a06032265e4085f8975a384fe170419f9f937 (diff)
Fix incorrect check in add script
Diffstat (limited to 'add')
-rwxr-xr-xadd2
1 files changed, 1 insertions, 1 deletions
diff --git a/add b/add
index 3ff0270..8838bb3 100755
--- a/add
+++ b/add
@@ -42,7 +42,7 @@ if [ "$uc" -eq 0 -a "$mc" -eq 0 ]; then
error "error: nothing untracked/modified"
fi
-if [ "$uc" -gt 0 -a "$mc" -gt 0 ]; then
+if [ "$(($uc + $mc))" -gt 1 ]; then
error "error: multiple untracked/modified files"
fi