forked from mirror/btrfs-sync
improve error message
This commit is contained in:
parent
6fc66dfb57
commit
feb889edf8
3
btrfs-sync
Executable file → Normal file
3
btrfs-sync
Executable file → Normal 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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user