omit double quotes from jq call to retrieve package name
parent
592e9599d3
commit
16c034f767
|
@ -29,7 +29,7 @@ if [ "$PACKAGE_MODE" = "true" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PACKAGE_NAME=$(cat "$PACKAGE_JSON_PATH" | jq ".name")
|
PACKAGE_NAME=$(cat "$PACKAGE_JSON_PATH" | jq -r ".name")
|
||||||
|
|
||||||
if [ -z $PACKAGE_NAME ]; then
|
if [ -z $PACKAGE_NAME ]; then
|
||||||
echo "Unable to parse package name from package.json. Aborting..."
|
echo "Unable to parse package name from package.json. Aborting..."
|
||||||
|
@ -45,8 +45,6 @@ if [ "$PACKAGE_MODE" = "true" ]; then
|
||||||
-createProject "./TempProject" \
|
-createProject "./TempProject" \
|
||||||
-quit
|
-quit
|
||||||
|
|
||||||
UNITY_PROJECT_PATH="./TempProject"
|
|
||||||
|
|
||||||
# use jq to add the package to the temp project through manually modifying Packages/manifest.json
|
# 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..."
|
echo "Adding package to the temporary project's dependencies and testables..."
|
||||||
|
|
||||||
|
@ -67,6 +65,8 @@ if [ "$PACKAGE_MODE" = "true" ]; then
|
||||||
cat "$PACKAGE_MANIFEST_PATH"
|
cat "$PACKAGE_MANIFEST_PATH"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
UNITY_PROJECT_PATH="./TempProject"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue