1
0
Fork 0

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