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
6262 verbose " $tag : copy local file to remote file in place"
6363 scpclean
6464 cp ${DATA} ${COPY}
65- $SCP $ scpopts ${COPY} somehost:${COPY} || fail " copy failed"
65+ $SCP " ${ scpopts[@]} " ${COPY} somehost:${COPY} || fail " copy failed"
6666 cmp ${DATA} ${COPY} || fail " corrupted copy"
6767
6868 verbose " $tag : copy remote file to local file in place"
6969 scpclean
7070 cp ${DATA} ${COPY}
71- $SCP $ scpopts somehost:${COPY} ${COPY} || fail " copy failed"
71+ $SCP " ${ scpopts[@]} " somehost:${COPY} ${COPY} || fail " copy failed"
7272 cmp ${DATA} ${COPY} || fail " corrupted copy"
7373
7474 verbose " $tag : copy local file to remote file clobber"
7575 scpclean
7676 cat ${DATA} ${DATA} > ${COPY}
77- $SCP $ scpopts ${DATA} somehost:${COPY} || fail " copy failed"
77+ $SCP " ${ scpopts[@]} " ${DATA} somehost:${COPY} || fail " copy failed"
7878 ls -l $DATA $COPY
7979 cmp ${DATA} ${COPY} || fail " corrupted copy"
8080
8181 verbose " $tag : copy remote file to local file clobber"
8282 scpclean
8383 cat ${DATA} ${DATA} > ${COPY}
84- $SCP $ scpopts somehost:${DATA} ${COPY} || fail " copy failed"
84+ $SCP " ${ scpopts[@]} " somehost:${DATA} ${COPY} || fail " copy failed"
8585 cmp ${DATA} ${COPY} || fail " corrupted copy"
8686
8787 verbose " $tag : simple copy local file to remote dir"
You can’t perform that action at this time.
0 commit comments