diff bin/fpkg @ 90:aefad9391470

Extra error message if not command is given
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 06 Sep 2019 22:07:38 +0200
parents 76ddab9ab965
children fffee187f1f7
line wrap: on
line diff
--- a/bin/fpkg	Fri Sep 06 18:18:54 2019 +0200
+++ b/bin/fpkg	Fri Sep 06 22:07:38 2019 +0200
@@ -139,6 +139,8 @@
 command="$1"
 shift
 
+test -n "$command" || { echo "ERROR: no command given" >&2; exit 2; }
+
 case "${command}" in
     audit)
         command_audit "$@"