wfvm: support transferring folders recursively
This commit is contained in:
parent
3e19ee59c9
commit
3d41477178
|
@ -53,13 +53,13 @@ rec {
|
||||||
win-put = pkgs.writeShellScriptBin "win-put" ''
|
win-put = pkgs.writeShellScriptBin "win-put" ''
|
||||||
echo win-put $1 -\> $2
|
echo win-put $1 -\> $2
|
||||||
${pkgs.sshpass}/bin/sshpass -p1234 -- \
|
${pkgs.sshpass}/bin/sshpass -p1234 -- \
|
||||||
${pkgs.openssh}/bin/scp -P 2022 ${sshOpts} \
|
${pkgs.openssh}/bin/scp -r -P 2022 ${sshOpts} \
|
||||||
$1 wfvm@localhost:$2
|
$1 wfvm@localhost:$2
|
||||||
'';
|
'';
|
||||||
win-get = pkgs.writeShellScriptBin "win-get" ''
|
win-get = pkgs.writeShellScriptBin "win-get" ''
|
||||||
echo win-get $1
|
echo win-get $1
|
||||||
${pkgs.sshpass}/bin/sshpass -p1234 -- \
|
${pkgs.sshpass}/bin/sshpass -p1234 -- \
|
||||||
${pkgs.openssh}/bin/scp -T -P 2022 ${sshOpts} \
|
${pkgs.openssh}/bin/scp -r -T -P 2022 ${sshOpts} \
|
||||||
wfvm@localhost:$1 .
|
wfvm@localhost:$1 .
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue