Update plugin_compress.sh

This commit is contained in:
Mr Chen 2019-02-25 19:37:51 +08:00
parent 05e955e06e
commit adb751bce2
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ startTime=`date +%s`
PLUGIN_NAME='readme'
#echo $rootPath/plugins/$PLUGIN_NAME
cd $rootPath/plugins/$PLUGIN_NAME && zip $rootPath/plugins/$PLUGIN_NAME/readme_${startTime}.zip -r ./* > /tmp/t.log + 2>&1
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))