aboutsummaryrefslogtreecommitdiff
path: root/bin/shb.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-15 13:59:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-15 13:59:47 +1200
commit94341e6d65c4ef4c7645f95ad40ee42f835c6069 (patch)
treeb450debfbbe5cdc9632566f4c19818e2ec425e88 /bin/shb.sh
parentAdd missing `exit` call to igex(1df) (diff)
downloaddotfiles-94341e6d65c4ef4c7645f95ad40ee42f835c6069.tar.gz
dotfiles-94341e6d65c4ef4c7645f95ad40ee42f835c6069.zip
Clean up some exit statuses
Diffstat (limited to 'bin/shb.sh')
-rw-r--r--bin/shb.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/shb.sh b/bin/shb.sh
index 7d31876d..d0279ce3 100644
--- a/bin/shb.sh
+++ b/bin/shb.sh
@@ -1,10 +1,10 @@
# Use PATH to build a shebang for a script given on stdin
self=shb
-# Need at least two arguments
+# Need at least one argument
if [ "$#" -lt 1 ] ; then
printf >&2 '%s: Need interpreter command\n' "$self"
- exit 1
+ exit 2
fi
# First argument is the name of the interpreter
@@ -23,4 +23,4 @@ set -- "$intp" "$@"
printf '#!%s\n' "$*"
# Emit the rest of the input
-cat
+cat -