From b7b550b50fb885e945fb5432b4d81d6cebf6a1d4 Mon Sep 17 00:00:00 2001 From: zhangzifa Date: Wed, 6 Jan 2016 15:19:41 +0800 Subject: [PATCH] remove unnecessary operation --- upload_file | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/upload_file b/upload_file index a2dc23d..0051ff3 100755 --- a/upload_file +++ b/upload_file @@ -9,15 +9,12 @@ fi FULL_PATH=$2 TARGET_PATH=$2 -FILE=`echo $FULL_PATH |awk -F "\/" '{print $NF}'` -DIR=`dirname $FULL_PATH` GZIP=`which gzip` if [ $GZIP ]; then - cd $DIR - $GZIP -c $FILE > $FILE".gz" + $GZIP -c $FULL_PATH > $FULL_PATH".gz" TARGET_PATH=$FULL_PATH".gz" fi -# ./uploader server filepath token id +#uploader server filepath token id $UPLOADER $1 $TARGET_PATH $3 $4