From 1319f56d67f67de2f295dd8bafc317cd596c5422 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 3 Dec 2018 18:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/pick.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/pick.sh diff --git a/scripts/pick.sh b/scripts/pick.sh new file mode 100755 index 000000000..7807bb1ea --- /dev/null +++ b/scripts/pick.sh @@ -0,0 +1,21 @@ +#!/bin/bash +PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin + +curPath=`pwd` +rootPath=$(dirname "$curPath") + + +#----------------------------- 代码打包 -------------------------# + +echo $rootPath +cd $rootPath + +startTime=`date +%s` + +zip -r -q -o mdserver-web.zip ./ + +mv mdserver-web.zip $rootPath/scripts + +endTime=`date +%s` +((outTime=($endTime-$startTime))) +echo -e "Time consumed:\033[32m $outTime \033[0mSec!" \ No newline at end of file