From: Ralph Corderoy Date: Mon, 18 Sep 2017 22:29:24 +0000 (+0100) Subject: sendfiles: Always die with exit status of 1 rather than -1. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8179845836746519dca7b935b6a3446bee76e9fe?ds=inline sendfiles: Always die with exit status of 1 rather than -1. 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. --- diff --git a/etc/sendfiles b/etc/sendfiles index 18b714a2..ef84015e 100755 --- a/etc/sendfiles +++ b/etc/sendfiles @@ -41,7 +41,7 @@ help() { die() { printf '%s\n' "$usage" - exit ${1:-1} + exit 1 } bindir=`finddir $0`