diff --git a/scripts/plugin_compress.sh b/scripts/plugin_compress.sh index 7cdb5b2fd..d6bef952f 100755 --- a/scripts/plugin_compress.sh +++ b/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!" \ No newline at end of file +((outTime=($endTime-$startTime))) +echo -e "Time consumed:\033[32m $outTime \033[0msecs.!" \ No newline at end of file