aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com>2023-05-19 20:20:01 +0100
committerGitHub <noreply@github.com>2023-05-19 21:20:01 +0200
commitbba51c2eeb21da09e53caef52163f3e1c7598689 (patch)
tree49430f082288e9538365a021ee4ab33047bbe97b
parentfc26189fe1338ffcba12d83a922da9c706738902 (diff)
Fix macOS Update Script (#5014)1.1.808
* Update updater.sh * Better script * Revert "Better script" This reverts commit 9bf6be863892e5e10c2f2dba45f1d0a60daca688.
-rwxr-xr-xdistribution/macos/updater.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/distribution/macos/updater.sh b/distribution/macos/updater.sh
index 1b322493..0854d434 100755
--- a/distribution/macos/updater.sh
+++ b/distribution/macos/updater.sh
@@ -25,14 +25,14 @@ error_handler() {
exit 1
}
-trap 'error_handler ${LINENO}' ERR
-
# Wait for Ryujinx to exit
# NOTE: in case no fds are open, lsof could be returning with a process still living.
# We wait 1s and assume the process stopped after that
lsof -p $APP_PID +r 1 &>/dev/null
sleep 1
+trap 'error_handler ${LINENO}' ERR
+
# Now replace and reopen.
rm -rf "$INSTALL_DIRECTORY"
mv "$NEW_APP_DIRECTORY" "$INSTALL_DIRECTORY"