From 16c034f767f7a202507542e45f683c648502081b Mon Sep 17 00:00:00 2001 From: Aaron Trudeau <36064197+trudeaua21@users.noreply.github.com> Date: Thu, 27 Jan 2022 02:25:06 -0500 Subject: [PATCH] omit double quotes from jq call to retrieve package name --- dist/steps/run_tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/steps/run_tests.sh b/dist/steps/run_tests.sh index a8585b0..e86bb82 100755 --- a/dist/steps/run_tests.sh +++ b/dist/steps/run_tests.sh @@ -29,7 +29,7 @@ if [ "$PACKAGE_MODE" = "true" ]; then exit 1 fi - PACKAGE_NAME=$(cat "$PACKAGE_JSON_PATH" | jq ".name") + PACKAGE_NAME=$(cat "$PACKAGE_JSON_PATH" | jq -r ".name") if [ -z $PACKAGE_NAME ]; then echo "Unable to parse package name from package.json. Aborting..." @@ -45,8 +45,6 @@ if [ "$PACKAGE_MODE" = "true" ]; then -createProject "./TempProject" \ -quit - UNITY_PROJECT_PATH="./TempProject" - # use jq to add the package to the temp project through manually modifying Packages/manifest.json echo "Adding package to the temporary project's dependencies and testables..." @@ -67,6 +65,8 @@ if [ "$PACKAGE_MODE" = "true" ]; then cat "$PACKAGE_MANIFEST_PATH" echo "" + UNITY_PROJECT_PATH="./TempProject" + fi #