From: Francois Fleuret Date: Thu, 13 Jul 2017 19:02:24 +0000 (+0200) Subject: Minor fix. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=ad0a5cecf38c0bf27719e4f1bcbced3862d464fd;p=xremote.git Minor fix. --- diff --git a/xremote.sh b/xremote.sh index da23287..83f984e 100755 --- a/xremote.sh +++ b/xremote.sh @@ -107,7 +107,7 @@ do SEND) check_remote_is_defined - tar c "${value}" | ssh "${REMOTE_HOST}" "cd \"${REMOTE_DIR}\" && tar mx" + tar c ${value} | ssh "${REMOTE_HOST}" "cd \"${REMOTE_DIR}\" && tar mx" ;; HOST) @@ -115,7 +115,7 @@ do REMOTE_HOST="${value}" [[ "${REMOTE_HOST}" ]] || REMOTE_HOST="${XREMOTE_HOST}" [[ "${REMOTE_HOST}" ]] || (echo "No remote host specified." >&2 && exit 1) - REMOTE_DIR="$(ssh /dev/null c ${value}" | tar mxv ;; esac fi