omit double quotes from jq call to retrieve package name

This commit is contained in:
Aaron Trudeau
2022-01-27 02:25:06 -05:00
parent 592e9599d3
commit 16c034f767

View File

@@ -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
#