changeset 92:a8e76893140f

Extra error message if no command is given
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 06 Sep 2019 22:12:31 +0200
parents fffee187f1f7
children c95726f83f84
files bin/fjail
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bin/fjail	Fri Sep 06 22:08:19 2019 +0200
+++ b/bin/fjail	Fri Sep 06 22:12:31 2019 +0200
@@ -270,6 +270,8 @@
 shift $((OPTIND-1))
 OPTIND=1
 
+test $# -gt 0 || { echo "ERROR: no command given" >&2; exit 2; }
+
 command="$1"
 shift