2
0
Fork 0

sh.zio.backup: fix error message

This commit is contained in:
Ducky 2023-08-22 21:54:43 +01:00
parent 030030e546
commit dd75210f5b

View file

@ -304,6 +304,7 @@ elif [[ "$1" == "rescue" ]]; then
--target "/srv/dumps/$host/restic/$snapshot" \ --target "/srv/dumps/$host/restic/$snapshot" \
"$snapshot" "$snapshot"
elif [[ "$1" == "toggle-mount" ]]; then elif [[ "$1" == "toggle-mount" ]]; then
mkdir -p "$restic_mount_path"
test_restic_mount="$(mountpoint "$restic_mount_path")" test_restic_mount="$(mountpoint "$restic_mount_path")"
if [[ $? == 0 ]]; then if [[ $? == 0 ]]; then
@ -318,7 +319,6 @@ elif [[ "$1" == "toggle-mount" ]]; then
fi fi
else else
say info "Mounting: $restic_mount_path" say info "Mounting: $restic_mount_path"
mkdir -p "$restic_mount_path"
invoke_restic mount "$restic_mount_path" &>/dev/null & disown; invoke_restic mount "$restic_mount_path" &>/dev/null & disown;
fi fi
else else