From 034b313e0323729cdb55eaba776a12773f053755 Mon Sep 17 00:00:00 2001 From: Pedro Guerreiro Date: Thu, 19 Dec 2024 09:54:10 +0000 Subject: [PATCH] fix: patch failed but succeeded message is shown --- scripts/applyPatches.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/applyPatches.sh b/scripts/applyPatches.sh index 9ba8360ea39f..fa87b4540b38 100755 --- a/scripts/applyPatches.sh +++ b/scripts/applyPatches.sh @@ -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