Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/scripts/pick.sh

25 lines
498 B

7 years ago
#!/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
7 years ago
rm -rf ./*.pyc
rm -rf ./*/*.pyc
7 years ago
startTime=`date +%s`
7 years ago
zip -r -q -o mdserver-web.zip ./ -x@$curPath/pick_filter.txt
7 years ago
7 years ago
mv mdserver-web.zip $rootPath/scripts
7 years ago
endTime=`date +%s`
((outTime=($endTime-$startTime)))
echo -e "Time consumed:\033[32m $outTime \033[0mSec!"