correct bug handling subvolume creation on target

This commit is contained in:
Ralf Zerres
2025-08-03 13:18:22 +02:00
parent 01f37814d7
commit 9e7e5b4d28

View File

@@ -3275,7 +3275,8 @@ verify_snapper_structure () {
"$backup_root/$snapper_snapshots"
fi
cmd="$ssh btrfs subvolume create $backup_root/$snapper_snapshots 2>/dev/null"
if ! $(eval "$cmd"); then
ret=$(eval "$cmd")
if [ -z "$ret" ]; then
printf "${RED}Error: ${MAGENTA}Creation of snapper subvolume ${GREEN}%s${MAGENTA} failed${NO_COLOR}\n" \
"$backup_root/$snapper_snapshots"
return 1