comparison bin/fjail @ 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 a3b9d4fe560e
children c95726f83f84
comparison
equal deleted inserted replaced
91:fffee187f1f7 92:a8e76893140f
268 # command-local options. 268 # command-local options.
269 # 269 #
270 shift $((OPTIND-1)) 270 shift $((OPTIND-1))
271 OPTIND=1 271 OPTIND=1
272 272
273 test $# -gt 0 || { echo "ERROR: no command given" >&2; exit 2; }
274
273 command="$1" 275 command="$1"
274 shift 276 shift
275 277
276 case "${command}" in 278 case "${command}" in
277 datasets) 279 datasets)