File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1- prefix=" root@snsoffice.com:/var/www/pyarmor/downloads/latest "
1+ prefix=" root@snsoffice.com:/var/www/pyarmor/downloads"
22
33for path in ./ ; do
44 echo " Search path $path ..."
@@ -9,7 +9,7 @@ for path in ./ ; do
99 # platform=$(dirname $src)
1010 # platform=${platform#./}
1111 # fi
12- dest=" $prefix /$platform "
12+ dest=" $prefix /latest/ $platform "
1313 echo " Upload $src to $dest "
1414 scp -i ~ /.ssh/aliyun_id_rsa $src $dest
1515 done
2323# Update hash of dynamic library
2424# python make-hash.py
2525
26- echo " Upload index.json to $prefix /"
27- scp -i ~ /.ssh/aliyun_id_rsa index.json $prefix /
26+ echo " Upload index.json to $prefix /latest"
27+ scp -i ~ /.ssh/aliyun_id_rsa index.json $prefix /latest/
28+
29+ ver=$1
30+ if [[ -n " $ver " ]] ; then
31+ echo " Copy latest to remote path: /var/www/pyarmor/downloads/$ver "
32+ ssh -i ~ /.ssh/aliyun_id_rsa root@snsoffice.com " rm -rf /var/www/pyarmor/downloads/$ver ; cd /var/www/pyarmor/downloads; cp -a latest/ $ver "
33+ fi
You can’t perform that action at this time.
0 commit comments