[PATCH 03/75] import-rsnapshot: replace exit 1 with 2 for errors

0 views
Skip to first unread message

Rob Browning

unread,
Dec 10, 2025, 1:19:32 PM (3 days ago) Dec 10
to bup-...@googlegroups.com
Signed-off-by: Rob Browning <r...@defaultvalue.org>
---
lib/cmd/bup-import-rsnapshot | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/cmd/bup-import-rsnapshot b/lib/cmd/bup-import-rsnapshot
index 91f711e1..e8c8604f 100755
--- a/lib/cmd/bup-import-rsnapshot
+++ b/lib/cmd/bup-import-rsnapshot
@@ -7,7 +7,7 @@ usage() {
echo "Usage: bup import-rsnapshot [-n]" \
"<path to snapshot_root> [<backuptarget>]"
echo "-n,--dry-run: just print what would be done"
- exit 1
+ exit 2
}

DRY_RUN=
@@ -28,7 +28,7 @@ TARGET=$2

if [ ! -e "$SNAPSHOT_ROOT/." ]; then
echo "'$SNAPSHOT_ROOT' isn't a directory!"
- exit 1
+ exit 2
fi


--
2.47.3

Reply all
Reply to author
Forward
0 new messages