forked from M-Labs/wfvm
utils: fail on sftp errors
This commit is contained in:
parent
110fe11f00
commit
11a40de18a
@ -60,8 +60,10 @@ rec {
|
||||
echo win-put $1 -\> $2
|
||||
${pkgs.sshpass}/bin/sshpass -p1234 -- \
|
||||
${pkgs.openssh}/bin/sftp -r -P 2022 ${sshOpts} \
|
||||
wfvm@localhost <<< "cd $2
|
||||
put $1"
|
||||
wfvm@localhost -b- << EOF
|
||||
cd $2
|
||||
put $1
|
||||
EOF
|
||||
'';
|
||||
win-get = pkgs.writeShellScriptBin "win-get" ''
|
||||
set -e
|
||||
|
Loading…
Reference in New Issue
Block a user