Replace /dev/stdin with "-".

For some reason sftp -b doesn't work with /dev/stdin on Cygwin, as noted
and suggested by vinschen at redhat.com.
This commit is contained in:
Darren Tucker 2018-03-25 09:40:46 +11:00
parent b5974de1a1
commit 393436024d
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
verbose "$tid: put to remote directory (trailing slash)"
sftpclean
${SFTP} -q -S "$SSH" -F $OBJ/ssh_config -b /dev/stdin \
${SFTP} -q -S "$SSH" -F $OBJ/ssh_config -b - \
"sftp://${USER}@somehost:${PORT}/${DIR}/" > /dev/null 2>&1 << EOF
version
put ${DATA} copy
@ -48,7 +48,7 @@ fi
verbose "$tid: put to remote directory (no slash)"
sftpclean
${SFTP} -q -S "$SSH" -F $OBJ/ssh_config -b /dev/stdin \
${SFTP} -q -S "$SSH" -F $OBJ/ssh_config -b - \
"sftp://${USER}@somehost:${PORT}/${DIR}" > /dev/null 2>&1 << EOF
version
put ${DATA} copy