forked from mirror/btrfs-sync
check permissions for dst
This commit is contained in:
parent
21efd59959
commit
4d1c7a2830
|
@ -104,7 +104,10 @@ DST="${@: -1}"
|
|||
SSH=( ssh -p "$PORT" -o ServerAliveInterval=5 -o ConnectTimeout=1 -o BatchMode=yes "$NET" )
|
||||
}
|
||||
[[ "$SSH" != "" ]] && DST_CMD=( ${SSH[@]} ) || DST_CMD=( eval )
|
||||
${DST_CMD[@]} true &>/dev/null || { echo "SSH access error to $NET. Do you have passwordless login setup?"; exit 1; }
|
||||
${DST_CMD[@]} test -x "$DST" &>/dev/null || {
|
||||
echo "SSH access error to $NET. Do you have passwordless login setup, and addecuate permissions for $DST?"
|
||||
exit 1
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue