Skip to content

Commit 691218c

Browse files
committed
modify new scp.sh tests for windows
1 parent 2116c82 commit 691218c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

regress/scp.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)