From cdbd65f2041e217e0641c852bb91e520bd09ce2f Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 10 May 2020 20:11:23 +0200 Subject: [PATCH] let them quotes help --- bin/b2-ul_me | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/b2-ul_me b/bin/b2-ul_me index 17e8b74..b529dbe 100644 --- a/bin/b2-ul_me +++ b/bin/b2-ul_me @@ -14,10 +14,10 @@ apiUrl=$(echo $b2_authorize_account | jq -r '.apiUrl') B2_TOKEN=$(echo $b2_authorize_account | jq -r '.authorizationToken') B2_BUCKET_ID=$(echo $b2_authorize_account | jq -r '.bucketId') -if [ -z $b2_authorize_account ]; then echo b2_authorize_account is empty && exit 1; fi -if [ -z $apiUrl ]; then echo apiUrl is empty && exit 1; fi -if [ -z $B2_TOKEN ]; then echo B2_TOKEN is empty && exit 1; fi -if [ -z $B2_BUCKET_ID ]; then echo B2_BUCKET_ID is empty && exit 1; fi +if [ -z "$b2_authorize_account" ]; then echo b2_authorize_account is empty; exit 1; fi +if [ -z "$apiUrl" ]; then echo apiUrl is empty; exit 1; fi +if [ -z "$B2_TOKEN" ]; then echo B2_TOKEN is empty; exit 1; fi +if [ -z "$B2_BUCKET_ID" ]; then echo B2_BUCKET_ID is empty; exit 1; fi UPLOAD_URL=$(curl -s -H "Authorization:$B2_TOKEN" -d '{"bucketId":"$B2_BUCKET_ID"}' $apiUrl/b2api/v2/b2_get_upload_url | jq -r '.uploadUrl')