aboutsummaryrefslogtreecommitdiff
path: root/bin/han
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-16 21:11:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-16 21:11:22 +1200
commit497137d3cb35d8eff6a907723867d6c23b0a00b9 (patch)
tree9b2b0d56553e4a164c1b5dc7a8256c692dc98944 /bin/han
parentSwap td(1) for mktemp(1) in han(1) (diff)
downloaddotfiles-497137d3cb35d8eff6a907723867d6c23b0a00b9.tar.gz
dotfiles-497137d3cb35d8eff6a907723867d6c23b0a00b9.zip
Be consistent with trailing punct in comments
Diffstat (limited to 'bin/han')
-rwxr-xr-xbin/han6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/han b/bin/han
index efe4ceea..0f081890 100755
--- a/bin/han
+++ b/bin/han
@@ -6,7 +6,7 @@ self=han
[ -n "$BASH_VERSINFO" ] || exit
# Figure out the options with which we can call help; Bash >=4.0 has an -m
-# option which prints the help output in a man-page like format.
+# option which prints the help output in a man-page like format
declare -a helpopts
if ((BASH_VERSINFO[0] >= 4)) ; then
helpopts=(-m)
@@ -22,12 +22,12 @@ trap cleanup EXIT
td=$(mktd "$self") || exit
# If we have exactly one argument and a call to the help builtin with that
-# argument succeeds, display its output with `pager -s`.
+# argument succeeds, display its output with `pager -s`
if (($# == 1)) &&
help "${helpopts[@]}" "$1" >"$td"/"$1".help 2>/dev/null ; then
(cd -- "$td" && "$PAGER" -s -- "$1".help)
-# Otherwise, just pass all the arguments to man(1).
+# Otherwise, just pass all the arguments to man(1)
else
man "$@"
fi