File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,26 +62,26 @@ for mode in scp sftp ; do
62
62
verbose " $tag : copy local file to remote file in place"
63
63
scpclean
64
64
cp ${DATA} ${COPY}
65
- $SCP $ scpopts ${COPY} somehost:${COPY} || fail " copy failed"
65
+ $SCP " ${ scpopts[@]} " ${COPY} somehost:${COPY} || fail " copy failed"
66
66
cmp ${DATA} ${COPY} || fail " corrupted copy"
67
67
68
68
verbose " $tag : copy remote file to local file in place"
69
69
scpclean
70
70
cp ${DATA} ${COPY}
71
- $SCP $ scpopts somehost:${COPY} ${COPY} || fail " copy failed"
71
+ $SCP " ${ scpopts[@]} " somehost:${COPY} ${COPY} || fail " copy failed"
72
72
cmp ${DATA} ${COPY} || fail " corrupted copy"
73
73
74
74
verbose " $tag : copy local file to remote file clobber"
75
75
scpclean
76
76
cat ${DATA} ${DATA} > ${COPY}
77
- $SCP $ scpopts ${DATA} somehost:${COPY} || fail " copy failed"
77
+ $SCP " ${ scpopts[@]} " ${DATA} somehost:${COPY} || fail " copy failed"
78
78
ls -l $DATA $COPY
79
79
cmp ${DATA} ${COPY} || fail " corrupted copy"
80
80
81
81
verbose " $tag : copy remote file to local file clobber"
82
82
scpclean
83
83
cat ${DATA} ${DATA} > ${COPY}
84
- $SCP $ scpopts somehost:${DATA} ${COPY} || fail " copy failed"
84
+ $SCP " ${ scpopts[@]} " somehost:${DATA} ${COPY} || fail " copy failed"
85
85
cmp ${DATA} ${COPY} || fail " corrupted copy"
86
86
87
87
verbose " $tag : simple copy local file to remote dir"
You can’t perform that action at this time.
0 commit comments