unexpected EOF due to a missing parenthese

This commit is contained in:
surtur 2020-05-10 10:39:33 +02:00
parent 546e167bfd
commit b350f35983
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -8,7 +8,7 @@ B2_KEY_ID=${3}
B2_KEY=${4} B2_KEY=${4}
SHA1_OF_FILE=$(openssl dgst -sha1 $FILE_TO_UPLOAD | awk '{print $2;}') SHA1_OF_FILE=$(openssl dgst -sha1 $FILE_TO_UPLOAD | awk '{print $2;}')
b2_authorize_account=$(curl -s 'https://api.backblazeb2.com/b2api/v2/b2_authorize_account' -u "$B2_KEY_ID:$B2_KEY" b2_authorize_account=$(curl -s 'https://api.backblazeb2.com/b2api/v2/b2_authorize_account' -u "$B2_KEY_ID:$B2_KEY")
apiUrl=$(echo $b2_authorize_account | python -c "import sys, json; print (json.load(sys.stdin)['apiUrl'])") apiUrl=$(echo $b2_authorize_account | python -c "import sys, json; print (json.load(sys.stdin)['apiUrl'])")
B2_TOKEN=$(echo $b2_authorize_account | python -c "import sys, json; print (json.load(sys.stdin)['authorizationToken'])") B2_TOKEN=$(echo $b2_authorize_account | python -c "import sys, json; print (json.load(sys.stdin)['authorizationToken'])")
B2_BUCKET_ID=$(echo $b2_authorize_account | python -c "import sys, json; print (json.load(sys.stdin)['bucketId'])") B2_BUCKET_ID=$(echo $b2_authorize_account | python -c "import sys, json; print (json.load(sys.stdin)['bucketId'])")