From 4f9cb846f3fc61816c498fe5f31cb8be2926c2db Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Sat, 20 Jun 2015 23:51:15 -0400 Subject: [PATCH 1/1] import-rsnapshot: exit with 1, not -1 Using a negative exit code is a bashism and since we use /bin/sh to interpret the script, we should avoid it. This was reported by Raphael Geissert in a Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772222 Signed-off-by: Gabriel Filion [rlb@defaultvalue.org: adjust commit message] Reviewed-by: Rob Browning Tested-by: Rob Browning --- cmd/import-rsnapshot-cmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/import-rsnapshot-cmd.sh b/cmd/import-rsnapshot-cmd.sh index d04fbbb..6ab3984 100755 --- a/cmd/import-rsnapshot-cmd.sh +++ b/cmd/import-rsnapshot-cmd.sh @@ -5,7 +5,7 @@ usage() { echo "Usage: bup import-rsnapshot [-n]" \ " []" echo "-n,--dry-run: just print what would be done" - exit -1 + exit 1 } DRY_RUN= -- 2.39.2