diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-03 16:14:05 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-03 16:14:05 +1200 |
commit | 8777a2e22a1d4c2c7e77027c68f390a594a5cc14 (patch) | |
tree | 2b84e32084e3f999bce71d1cb7b12a2ade3b00bc /bin/tlcs | |
parent | Change shebang of tlcs(1) (diff) | |
download | dotfiles-8777a2e22a1d4c2c7e77027c68f390a594a5cc14.tar.gz dotfiles-8777a2e22a1d4c2c7e77027c68f390a594a5cc14.zip |
Check for too few args in tlcs(1)
Diffstat (limited to 'bin/tlcs')
-rwxr-xr-x | bin/tlcs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -27,6 +27,12 @@ while getopts 'hco:e:' opt ; do done shift "$((OPTIND-1))" +# We need at least one more argument +if [ "$#" -eq 0 ] ; then + printf >&2 'tlcs: Need a command to run\n' + exit 2 +fi + # If color was requested for the output, try and get a count of available # colors [ -n "$color" ] && color_count=$( { |