From 036c537d7b6a5f74d11c90f96aaf3c150d0ba0d9 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 28 Feb 2019 13:15:16 +0800 Subject: [PATCH] Update plugin_compress.sh --- scripts/plugin_compress.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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