diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-15 13:59:47 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-06-15 13:59:47 +1200 |
commit | 94341e6d65c4ef4c7645f95ad40ee42f835c6069 (patch) | |
tree | b450debfbbe5cdc9632566f4c19818e2ec425e88 /bin/shb.sh | |
parent | Add missing `exit` call to igex(1df) (diff) | |
download | dotfiles-94341e6d65c4ef4c7645f95ad40ee42f835c6069.tar.gz dotfiles-94341e6d65c4ef4c7645f95ad40ee42f835c6069.zip |
Clean up some exit statuses
Diffstat (limited to 'bin/shb.sh')
-rw-r--r-- | bin/shb.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 - |