From 01ee7236a462b07b7e45bb4800920ba1bef88c65 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 27 Sep 2016 06:40:36 +0200 Subject: Fix incorrect check in add script --- add | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1