]> diplodocus.org Git - nmh/commitdiff
sendfiles: Always die with exit status of 1 rather than -1.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 18 Sep 2017 22:29:24 +0000 (23:29 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 18 Sep 2017 22:29:24 +0000 (23:29 +0100)
The sh function die() took the exit status as an optional parameter,
with a default of -1, but this was never used so remove the option and
always use an exit status of 1.

etc/sendfiles

index 18b714a..ef84015 100755 (executable)
@@ -41,7 +41,7 @@ help() {
 
 die() {
   printf '%s\n' "$usage"
 
 die() {
   printf '%s\n' "$usage"
-  exit ${1:-1}
+  exit 1
 }
 
 bindir=`finddir $0`
 }
 
 bindir=`finddir $0`