Skip to content

Commit

Permalink
fix: patch failed but succeeded message is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
pac-guerreiro committed Dec 19, 2024
1 parent 653a06b commit 034b313
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/applyPatches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ function patchPackage {
OS="$(uname)"
if [[ "$OS" == "Darwin" || "$OS" == "Linux" ]]; then
npx patch-package --error-on-fail --color=always
EXIT_CODE=$?
if [[ "$IS_HYBRID_APP_REPO" == "true" && "$NEW_DOT_FLAG" == "false" ]]; then
echo -e "\n${GREEN}Applying HybridApp patches!${NC}"
npx patch-package --patch-dir 'Mobile-Expensify/patches' --error-on-fail --color=always
EXIT_CODE+=$?
fi
exit $EXIT_CODE
else
error "Unsupported OS: $OS"
exit 1
Expand Down

0 comments on commit 034b313

Please sign in to comment.