fix: update upstream upload service py script & correct its full path

This commit is contained in:
Ahmed Zetao Yang
2020-09-08 23:21:41 +08:00
committed by borgmanJeremy
parent 4b0740cb52
commit eb7fcd660c
2 changed files with 7 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ def download_url(url: str) -> str:
return None return None
j = { j = {
"intent": "entire_transfer",
"security_hash": security_hash, "security_hash": security_hash,
} }
if recipient_id: if recipient_id:

View File

@@ -20,6 +20,11 @@ if [ ! -f "$FILE" ]; then
exit 1 exit 1
fi fi
RESPONSE=$(python3 transferwee.py upload "${FILE}")
scripts_path=`dirname $0`
python3 -m pip install -U -q requests
RESPONSE=$(python3 ${scripts_path}/transferwee.py upload "${FILE}")
echo "${RESPONSE}" # to terminal echo "${RESPONSE}" # to terminal