Skip to content

Commit

Permalink
Double quote to prevent globbing/word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
katybaulch committed Mar 11, 2024
1 parent a1fd1e0 commit e8933e4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/testing/get-all-documents
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ source config
TOKEN=$(get_token)
curl -s \
-H "Authorization: Bearer ${TOKEN}" \
${TEST_URL}/api/v1/documents
"${TEST_URL}"/api/v1/documents
2 changes: 1 addition & 1 deletion scripts/testing/get-all-families
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ source config
TOKEN=$(get_token)
curl -s \
-H "Authorization: Bearer ${TOKEN}" \
${TEST_URL}/api/v1/families | jq
"${TEST_URL}"/api/v1/families | jq
2 changes: 1 addition & 1 deletion scripts/testing/get-config
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ source config
TOKEN=$(get_token)
curl -s \
-H "Authorization: Bearer ${TOKEN}" \
${TEST_URL}/api/v1/config | jq
"${TEST_URL}"/api/v1/config | jq
2 changes: 1 addition & 1 deletion scripts/testing/get-family
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ source config
TOKEN=$(get_token)
curl -s \
-H "Authorization: Bearer ${TOKEN}" \
${TEST_URL}/api/v1/families/CCLW.family.1002.0 | jq
"${TEST_URL}"/api/v1/families/CCLW.family.1002.0 | jq
2 changes: 1 addition & 1 deletion scripts/testing/search-families
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ TOKEN=$(get_token)

curl -s \
-H "Authorization: Bearer ${TOKEN}" \
${TEST_URL}/api/v1/families/?q=$* | jq
"${TEST_URL}"/api/v1/families/?q="$*" | jq
2 changes: 1 addition & 1 deletion scripts/testing/update-family
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ TOKEN=$(get_token)
curl -s -X PUT --data @family \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
${TEST_URL}/api/v1/families | jq
"${TEST_URL}"/api/v1/families | jq

0 comments on commit e8933e4

Please sign in to comment.