Update plugin_compress.sh

pull/109/head
Mr Chen 6 years ago
parent 342eec6ac6
commit 036c537d7b
  1. 10
      scripts/plugin_compress.sh

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