diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-22 11:41:08 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-22 11:41:08 +1300 |
commit | daca986bff3296dd5f6eca2b9a3aa345d66f0fd0 (patch) | |
tree | 4573efe45a8195ffd20eb6309dee6e941d6ee23b /bin/vex | |
parent | Add some aliases for irssi (diff) | |
download | dotfiles-daca986bff3296dd5f6eca2b9a3aa345d66f0fd0.tar.gz dotfiles-daca986bff3296dd5f6eca2b9a3aa345d66f0fd0.zip |
Enforce args for vest(1df) and vex(1df)
Diffstat (limited to 'bin/vex')
-rwxr-xr-x | bin/vex | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,5 +1,9 @@ #!/bin/sh # Run a command and print a string to stdout showing pass/fail +if [ "$#" -eq 0 ] ; then + printf >&2 'vex: Need a command\n' + exit 2 +fi "$@" ex=$? case $ex in |