sh.zio.backup: fix error message
This commit is contained in:
parent
030030e546
commit
dd75210f5b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue