代码打包

This commit is contained in:
Mr Chen 2018-12-03 18:22:04 +08:00
parent a77256a789
commit 1319f56d67
1 changed files with 21 additions and 0 deletions

21
scripts/pick.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
curPath=`pwd`
rootPath=$(dirname "$curPath")
#----------------------------- 代码打包 -------------------------#
echo $rootPath
cd $rootPath
startTime=`date +%s`
zip -r -q -o mdserver-web.zip ./
mv mdserver-web.zip $rootPath/scripts
endTime=`date +%s`
((outTime=($endTime-$startTime)))
echo -e "Time consumed:\033[32m $outTime \033[0mSec!"