Skip to content

Commit

Permalink
build: quotes in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Sep 24, 2020
1 parent a00808b commit 150ee36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cmake/apply_patches.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env sh

patches_dir=$(dirname $0)
patches_dir=$(dirname "$0")

for patch_file in $patches_dir/*.patch; do
echo $(basename $patch_file)
for patch_file in "$patches_dir"/*.patch; do
echo "Applying patch: $(basename "$patch_file")"

# Use git-apply to patch files.
# The --git-dir forces the tool to work in "outside of git repo" mode.
git --git-dir=. apply -v $patch_file
git --git-dir=. apply -v "$patch_file"
exit_code=$?

# Exit code 1 is ignored as this happens when trying apply patches to already
Expand Down
4 changes: 2 additions & 2 deletions test/ci-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ fi
branch=$(git rev-parse --abbrev-ref HEAD)

pipeline_id=$(
curl -s -u $CIRCLECI_TOKEN: -X POST https://circleci.com/api/v2/project/gh/wasmx/fizzy/pipeline \
curl -s -u "$CIRCLECI_TOKEN:" -X POST https://circleci.com/api/v2/project/gh/wasmx/fizzy/pipeline \
-H 'Content-Type: application/json' \
-d "{\"branch\":\"$branch\", \"parameters\":{\"benchmark\":true}}" |
jq -r '.id'
)

workflow_id=$(
curl -s -u $CIRCLECI_TOKEN: -X GET https://circleci.com/api/v2/pipeline/$pipeline_id/workflow |
curl -s -u "$CIRCLECI_TOKEN:" -X GET https://circleci.com/api/v2/pipeline/"$pipeline_id"/workflow |
jq -r '.items[0].id'
)

Expand Down

0 comments on commit 150ee36

Please sign in to comment.