Fix mp and cm variables
This commit is contained in:
parent
b84b4ddfec
commit
75549baba6
@ -136,6 +136,9 @@ for name in "${syncvols[@]}"; do
|
|||||||
if [[ $($ssh $sshcipher $sshport $source zfs get type -o value -H $name) == "filesystem" ]]; then
|
if [[ $($ssh $sshcipher $sshport $source zfs get type -o value -H $name) == "filesystem" ]]; then
|
||||||
mp=-xmountpoint
|
mp=-xmountpoint
|
||||||
cm=-xcanmount
|
cm=-xcanmount
|
||||||
|
else
|
||||||
|
mp=
|
||||||
|
cm=
|
||||||
fi
|
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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user