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