Removed -o pipefail.
authorFrancois Fleuret <francois@fleuret.org>
Tue, 3 Oct 2017 13:12:50 +0000 (15:12 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Tue, 3 Oct 2017 13:12:50 +0000 (15:12 +0200)
xremote.sh

index 2952bd2..ce16636 100755 (executable)
@@ -18,7 +18,8 @@
 #########################################################################
 
 set -e
-set -o pipefail
+
+# set -o pipefail
 
 ######################################################################
 
@@ -103,13 +104,14 @@ do
 
             PRE)
                 check_remote_is_defined
+                echo "xremote: ${value}"
                 ssh < /dev/null "${REMOTE_HOST}" "cd \"${REMOTE_DIR}\" && ${value}"
                 ;;
 
             SEND)
                 check_remote_is_defined
                 echo "xremote: -- sending files --------------------------------------------"
-                tar c ${value} | ssh "${REMOTE_HOST}" "cd \"${REMOTE_DIR}\" && tar mxv"
+                tar ch ${value} | ssh "${REMOTE_HOST}" "cd \"${REMOTE_DIR}\" && tar mxv"
                 ;;
 
             HOST)