handle failure better
authorThorsten Glaser <tg@mirbsd.org>
Fri, 12 Dec 2014 21:47:39 +0000 (21:47 +0000)
committerThorsten Glaser <tg@mirbsd.org>
Fri, 12 Dec 2014 21:47:39 +0000 (21:47 +0000)
mksh/debian-dev/c

index 9791585..c7f42d1 100644 (file)
 
 unset LANGUAGE
 export LC_ALL=C
+
+if [[ -z $1 ]]; then
+       print -u2 E: No operation specified
+       exit 1
+fi
 DIST=$1
 
 # workaround for supporting old and new eatmydata; cf. #765579