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.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
###
|
|
|
|
### 插件压缩
|
|
|
|
###
|
|
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
|
|
|
export PATH
|
|
|
|
LANG=en_US.UTF-8
|
|
|
|
is64bit=`getconf LONG_BIT`
|
|
|
|
curPath=`pwd`
|
|
|
|
rootPath=$(dirname "$curPath")
|
|
|
|
|
|
|
|
startTime=`date +%s`
|
|
|
|
PLUGIN_NAME='readme'
|
|
|
|
|
|
|
|
#echo $rootPath/plugins/$PLUGIN_NAME
|
|
|
|
mkdir -p $rootPath/scripts/tmp/$PLUGIN_NAME
|
|
|
|
cd $rootPath/plugins/$PLUGIN_NAME && zip $rootPath/scripts/tmp/$PLUGIN_NAME/readme_${startTime}.zip -r ./* > /tmp/t.log + 2>&1
|
|
|
|
|
|
|
|
endTime=`date +%s`
|
|
|
|
((outTime=($endTime-$startTime)/60))
|
|
|
|
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!"
|