Fix mp and cm variables

This commit is contained in:
thorsten.spille 2023-05-15 17:45:28 +02:00
parent b84b4ddfec
commit 75549baba6

View File

@ -136,6 +136,9 @@ for name in "${syncvols[@]}"; do
if [[ $($ssh $sshcipher $sshport $source zfs get type -o value -H $name) == "filesystem" ]]; then
mp=-xmountpoint
cm=-xcanmount
else
mp=
cm=
fi
if [[ $($ssh $sshcipher $sshport $source "zfs list -H -t snapshot -o name -S creation $name 2>/dev/null | grep -E \"$snapshot_filter\" | wc -l | tr -d ' '") -gt 0 ]]; then