diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-21 11:16:45 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-21 11:16:45 +1200 |
commit | 6bcb7df3118f8a752b16bdb98838855303ab164a (patch) | |
tree | 0d1af70dd9a72977adedaf2e436607fc7965f3c0 | |
parent | Switch to public clones of Vim submodules (diff) | |
download | dotfiles-6bcb7df3118f8a752b16bdb98838855303ab164a.tar.gz dotfiles-6bcb7df3118f8a752b16bdb98838855303ab164a.zip |
Remove unneeded line-break backslashes
-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 } |