Skip to content

Commit 2a67c11

Browse files
committed
Fix for "The config profile (null) could not be found" if CLI_PROFILE not set.
Also see jqlang/jq#354 for null to empty method.
1 parent 2b1e019 commit 2a67c11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fi
1616

1717
# Read other configuration from config.json
1818
REGION=$(jq -r '.REGION' config.json)
19-
CLI_PROFILE=$(jq -r '.CLI_PROFILE' config.json)
19+
CLI_PROFILE=$(jq -r '.CLI_PROFILE // empty' config.json)
2020
BUCKET=$(jq -r '.BUCKET' config.json)
2121
MAX_AGE=$(jq -r '.MAX_AGE' config.json)
2222
IDENTITY_POOL_ID=$(jq -r '.IDENTITY_POOL_ID' config.json)

Diff for: init.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fi
1616

1717
# Read other configuration from config.json
1818
AWS_ACCOUNT_ID=$(jq -r '.AWS_ACCOUNT_ID' config.json)
19-
CLI_PROFILE=$(jq -r '.CLI_PROFILE' config.json)
19+
CLI_PROFILE=$(jq -r '.CLI_PROFILE // empty' config.json)
2020
REGION=$(jq -r '.REGION' config.json)
2121
BUCKET=$(jq -r '.BUCKET' config.json)
2222
MAX_AGE=$(jq -r '.MAX_AGE' config.json)

0 commit comments

Comments
 (0)