Skip to content

Commit

Permalink
remove unnecessary operation
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzifa authored and 穆客 committed Jan 6, 2016
1 parent 516c5ae commit b7b550b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions upload_file
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b7b550b

Please sign in to comment.