updated git.sh

pull/2/head
Hari Sekhon 5 years ago
parent 92a53836ee
commit 52379f0572

@ -294,7 +294,7 @@ checkout(){
gitadd() {
local gitcimsg=""
for x in "$@"; do
if git status -s "$x" | grep "^[?A]"; then
if git status -s "$x" | grep -q '^[?A]'; then
gitcimsg+="$x, "
fi
done

Loading…
Cancel
Save