|
|
@ -11,12 +11,12 @@ curPath=`pwd` |
|
|
|
rootPath=$(dirname "$curPath") |
|
|
|
rootPath=$(dirname "$curPath") |
|
|
|
|
|
|
|
|
|
|
|
startTime=`date +%s` |
|
|
|
startTime=`date +%s` |
|
|
|
PLUGIN_NAME='readme' |
|
|
|
PLUGIN_NAME='abkill' |
|
|
|
|
|
|
|
|
|
|
|
#echo $rootPath/plugins/$PLUGIN_NAME |
|
|
|
#echo $rootPath/plugins/$PLUGIN_NAME |
|
|
|
mkdir -p $rootPath/scripts/tmp/$PLUGIN_NAME |
|
|
|
mkdir -p $rootPath/scripts/tmp |
|
|
|
cd $rootPath/plugins/$PLUGIN_NAME && zip $rootPath/scripts/tmp/$PLUGIN_NAME/readme_${startTime}.zip -r ./* > /tmp/t.log + 2>&1 |
|
|
|
cd $rootPath/plugins/$PLUGIN_NAME && zip $rootPath/scripts/tmp/${PLUGIN_NAME}_${startTime}.zip -r ./* > /tmp/t.log + 2>&1 |
|
|
|
|
|
|
|
|
|
|
|
endTime=`date +%s` |
|
|
|
endTime=`date +%s` |
|
|
|
((outTime=($endTime-$startTime)/60)) |
|
|
|
((outTime=($endTime-$startTime))) |
|
|
|
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!" |
|
|
|
echo -e "Time consumed:\033[32m $outTime \033[0msecs.!" |