h5资源部署自动化脚本参考
2017-03-20 本文已影响89人
蘇上方
#!/bin/bash
# Author : suxuemin
echo "enter file's url?"
read URL
curl -O $URL
#echo ${$URL##*/}
File=`echo $URL|awk -F/ '{print $NF}'`
unzip $File
mv -f resources/* .
rm -rf resources
#!/bin/bash
# Author : suxuemin
echo "enter file's url?"
read URL
curl -O $URL
#echo ${$URL##*/}
File=`echo $URL|awk -F/ '{print $NF}'`
unzip $File
mv -f resources/* .
rm -rf resources