improve error message

This commit is contained in:
nachoparker 2019-02-25 08:46:07 -07:00
parent 6fc66dfb57
commit feb889edf8

3
btrfs-sync Executable file → Normal file
View File

@ -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
}