1
0
Fork 0

wfvm: support transferring folders recursively

This commit is contained in:
Sebastien Bourdeauducq 2020-06-17 17:02:24 +08:00
parent 3e19ee59c9
commit 3d41477178
1 changed files with 2 additions and 2 deletions

View File

@ -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 .
''; '';