Fix mp and cm variables
This commit is contained in:
parent
b84b4ddfec
commit
75549baba6
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue