Skip to content

Commit 7e0a44f

Browse files
committed
fix uploader file path issue
1 parent 769465e commit 7e0a44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upload_file

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ $GZIP ] && [ -f "$FULL_PATH" ]; then
1818
TARGET_PATH=$FULL_PATH".gz"
1919
fi
2020

21-
UPLOADER=`pwd`/uploader.js
21+
UPLOADER=$(cd "$(dirname "$0")"; pwd)/uploader.js
2222

2323
#uploader server filepath token id
2424
$NODE "$UPLOADER" $1 $TARGET_PATH $3 $4

0 commit comments

Comments
 (0)