From 75549baba6dc229d4748706c15ca7cd43a25fd82 Mon Sep 17 00:00:00 2001 From: "thorsten.spille" Date: Mon, 15 May 2023 17:45:28 +0200 Subject: [PATCH] Fix mp and cm variables --- bashclub-zsync/usr/bin/bashclub-zsync | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bashclub-zsync/usr/bin/bashclub-zsync b/bashclub-zsync/usr/bin/bashclub-zsync index 5d01be2..a61fccd 100644 --- a/bashclub-zsync/usr/bin/bashclub-zsync +++ b/bashclub-zsync/usr/bin/bashclub-zsync @@ -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