aboutsummaryrefslogtreecommitdiff
path: root/bin/han
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-10-11 14:33:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-10-11 14:33:37 +1300
commitc5a85aed3c1e97fd72498e66507e10c7d0d44c95 (patch)
tree541e1e354479cc25a8cd7b4279e45758150344a0 /bin/han
parentSilence SC2029 error from shellcheck (diff)
downloaddotfiles-c5a85aed3c1e97fd72498e66507e10c7d0d44c95.tar.gz
dotfiles-c5a85aed3c1e97fd72498e66507e10c7d0d44c95.zip
Correct a version check in han(1)
Diffstat (limited to 'bin/han')
-rwxr-xr-xbin/han4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/han b/bin/han
index 0d2f6755..755710d5 100755
--- a/bin/han
+++ b/bin/han
@@ -24,8 +24,8 @@
self=han
# Give up completely if no BASH_VERSINFO (<2.0)
-if ! test "$BASH_VERSINFO" ; then
- return
+if ! [ -n "$BASH_VERSINFO" ] ; then
+ exit
fi
# Figure out the options with which we can call help; Bash >=4.0 has an -m