From ad0a5cecf38c0bf27719e4f1bcbced3862d464fd Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 13 Jul 2017 21:02:24 +0200 Subject: [PATCH] Minor fix. --- xremote.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5