diff options
-rwxr-xr-x | bin/han | 2 | ||||
-rwxr-xr-x | bin/td | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -46,7 +46,7 @@ trap cleanup EXIT # If we have exactly one argument and a call to the help builtin with that # argument succeeds, display its output with `pager -s`. -if (($# == 1)) && \ +if (($# == 1)) && help "${helpopts[@]}" "$1" >"$tmpdir"/"$1".help 2>/dev/null ; then (cd -- "$tmpdir" && pager -s -- "$1".help) @@ -29,7 +29,7 @@ cd -- "$dir" || exit # Quick function to determine if a directory is a Git repository isrepo() { - { git symbolic-ref --quiet HEAD || \ + { git symbolic-ref --quiet HEAD || git rev-parse --short HEAD } >/dev/null 2>&1 } |