Skip to content

Commit

Permalink
cd into the wp_dir before doing stuff with the json file
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jan 30, 2024
1 parent fde423d commit 25c410a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/bin/prepare-wp-upstreams.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ function update_json() {
if git -C "${wp_dir}" log --oneline wpms-fixture/master..origin/master; then
echo "wp fixture is already ahead of wpms fixture. Skipping json update."
else
cd "${wp_dir}"
# Parse the JSON file.
echo "Parsing JSON file..."
updates_json="updates.json"
updates_json="${wp_dir}/updates.json"
testRun=$(jq -r .testRun "${updates_json}")
if [ "$testRun" == "null" ]; then
echo "JSON file does not contain 'testRun' key or it's null."
Expand Down

0 comments on commit 25c410a

Please sign in to comment.