Simple grep change in elif in __git-supp_shortalias()
parent
bc07473f12
commit
cda202fd1d
|
@ -63,7 +63,7 @@ __git-short_shortalias ()
|
||||||
cmd="$( grep "^$shortcmd " <<< "$__git_short_maps" | cut -d' ' -f3- )"
|
cmd="$( grep "^$shortcmd " <<< "$__git_short_maps" | cut -d' ' -f3- )"
|
||||||
if [ -z "$cmd" ]; then
|
if [ -z "$cmd" ]; then
|
||||||
return
|
return
|
||||||
elif [ "$( grep '^|' <<< "$cmd")" ]; then
|
elif grep -q '^|' <<< "$cmd"; then
|
||||||
eval "$( sed 's/^|//' <<< "$cmd" ) $@"
|
eval "$( sed 's/^|//' <<< "$cmd" ) $@"
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue