diff --git a/btrfs-sync b/btrfs-sync old mode 100755 new mode 100644 index 82e1334..02317aa --- a/btrfs-sync +++ b/btrfs-sync @@ -105,7 +105,8 @@ DST="${@: -1}" } [[ "$SSH" != "" ]] && DST_CMD=( ${SSH[@]} ) || DST_CMD=( eval ) ${DST_CMD[@]} test -x "$DST" &>/dev/null || { - echo "SSH access error to $NET. Do you have passwordless login setup, and addecuate permissions for $DST?" + [[ "$SSH" != "" ]] && echo "SSH access error to $NET. Do you have passwordless login setup, and adequate permissions for $DST?" + [[ "$SSH" == "" ]] && echo "Access error. Do you have adequate permissions for $DST?" exit 1 }