1
0
Fork 0

Simple grep change in elif in __git-supp_shortalias()

master
Mike Gerwitz 2013-07-08 22:01:13 -04:00
parent bc07473f12
commit cda202fd1d
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ __git-short_shortalias ()
cmd="$( grep "^$shortcmd " <<< "$__git_short_maps" | cut -d' ' -f3- )"
if [ -z "$cmd" ]; then
return
elif [ "$( grep '^|' <<< "$cmd")" ]; then
elif grep -q '^|' <<< "$cmd"; then
eval "$( sed 's/^|//' <<< "$cmd" ) $@"
return $?
fi