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 <gabster@lelutin.ca>
[rlb@defaultvalue.org: adjust commit message]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
echo "Usage: bup import-rsnapshot [-n]" \
"<path to snapshot_root> [<backuptarget>]"
echo "-n,--dry-run: just print what would be done"
- exit -1
+ exit 1
}
DRY_RUN=