aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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