Skip to content

Commit

Permalink
fix error exit path and arg injection
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed Oct 4, 2023
1 parent 6b9fe6a commit ef1f7f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SENTRY_AUTH_TOKEN_INPUT=${3}

# Build the release bundle
echo "Building the release bundle..."
SENTRY_ORG=$SENTRY_ORG_INPUT SENTRY_PROJECT=SENTRY_PROJECT_INPUT SENTRY_AUTH_TOKEN=SENTRY_AUTH_TOKEN_INPUT xcodebuild -workspace EmpowerPlant.xcworkspace -scheme EmpowerPlant -configuration Release -derivedDataPath build -destination "platform=iOS Simulator,OS=latest,name=iPhone 14" -quiet clean build
SENTRY_ORG=$SENTRY_ORG_INPUT SENTRY_PROJECT=$SENTRY_PROJECT_INPUT SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN_INPUT xcodebuild -workspace EmpowerPlant.xcworkspace -scheme EmpowerPlant -configuration Release -derivedDataPath build -destination "platform=iOS Simulator,OS=latest,name=iPhone 14" -quiet clean build
zip -r EmpowerPlant_release.zip ./build/Build/Products/Release-iphonesimulator/EmpowerPlant.app
ZIP_PATH="./EmpowerPlant_release.zip"

Expand Down
1 change: 1 addition & 0 deletions upload-symbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ if which sentry-cli >/dev/null; then
ERROR=$(sentry-cli upload-dif --force-foreground --include-sources --log-level debug -o $SENTRY_ORG -p $SENTRY_PROJECT "$DWARF_DSYM_FOLDER_PATH" )
if [ ! $? -eq 0 ]; then
echo "warning: sentry-cli - $ERROR"
exit 1
fi
else
echo "error: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases"
Expand Down

0 comments on commit ef1f7f9

Please sign in to comment.