aboutsummaryrefslogtreecommitdiff
path: root/bin/tlcs
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-03 16:14:05 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-03 16:14:05 +1200
commit8777a2e22a1d4c2c7e77027c68f390a594a5cc14 (patch)
tree2b84e32084e3f999bce71d1cb7b12a2ade3b00bc /bin/tlcs
parentChange shebang of tlcs(1) (diff)
downloaddotfiles-8777a2e22a1d4c2c7e77027c68f390a594a5cc14.tar.gz
dotfiles-8777a2e22a1d4c2c7e77027c68f390a594a5cc14.zip
Check for too few args in tlcs(1)
Diffstat (limited to 'bin/tlcs')
-rwxr-xr-xbin/tlcs6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/tlcs b/bin/tlcs
index 77984b24..3b3265a4 100755
--- a/bin/tlcs
+++ b/bin/tlcs
@@ -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=$( {