windows: work around $i not working in $ssh

This commit is contained in:
Sebastien Bourdeauducq 2019-11-10 19:33:16 +08:00
parent a4f9732a3d
commit 525b91cb21
1 changed files with 8 additions and 5 deletions

View File

@ -53,11 +53,14 @@ stdenv.mkDerivation {
echo "Wait for Windows to boot"
sleep 10
${ssh "ver"}
i=0
for pkg in ${sipycoPkg}/noarch/sipyco*.tar.bz2 ${artiqPkg}/noarch/artiq*.tar.bz2 ; do
${scp "\\$pkg" "to_install\\$i.tar.bz2"}
${ssh "anaconda\\scripts\\activate ${condaEnv} && conda install to_install\\$i.tar.bz2"}
((i=i+1))
# FIXME: clean up this hack with the for loops
for pkg in ${sipycoPkg}/noarch/sipyco*.tar.bz2 ; do
${scp "\\$pkg" "sipyco.tar.bz2"}
${ssh "anaconda\\scripts\\activate ${condaEnv} && conda install sipyco.tar.bz2"}
done
for pkg in ${artiqPkg}/noarch/artiq*.tar.bz2 ; do
${scp "\\$pkg" "artiq.tar.bz2"}
${ssh "anaconda\\scripts\\activate ${condaEnv} && conda install artiq.tar.bz2"}
done
# Schedule a timed shutdown against hanging test runs