From feb889edf867a21b9bc5734f6bd2f3a5acfdd14a Mon Sep 17 00:00:00 2001 From: nachoparker Date: Mon, 25 Feb 2019 08:46:07 -0700 Subject: [PATCH] improve error message --- btrfs-sync | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100755 => 100644 btrfs-sync 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 }