diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-27 06:40:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-09-27 06:40:36 +0200 |
commit | 01ee7236a462b07b7e45bb4800920ba1bef88c65 (patch) | |
tree | d5d6eedb674b5508674fd5f37f5f663687215e9e | |
parent | 1c6a06032265e4085f8975a384fe170419f9f937 (diff) |
Fix incorrect check in add script
-rwxr-xr-x | add | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |