0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-22 23:25:46 +00:00

Fix macOS Update Script (#5014)

* Update updater.sh

* Better script

* Revert "Better script"

This reverts commit 9bf6be863892e5e10c2f2dba45f1d0a60daca688.
This commit is contained in:
Isaac Marovitz 2023-05-19 20:20:01 +01:00 committed by GitHub
parent fc26189fe1
commit bba51c2eeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,14 +25,14 @@ error_handler() {
exit 1 exit 1
} }
trap 'error_handler ${LINENO}' ERR
# Wait for Ryujinx to exit # Wait for Ryujinx to exit
# NOTE: in case no fds are open, lsof could be returning with a process still living. # 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 # We wait 1s and assume the process stopped after that
lsof -p $APP_PID +r 1 &>/dev/null lsof -p $APP_PID +r 1 &>/dev/null
sleep 1 sleep 1
trap 'error_handler ${LINENO}' ERR
# Now replace and reopen. # Now replace and reopen.
rm -rf "$INSTALL_DIRECTORY" rm -rf "$INSTALL_DIRECTORY"
mv "$NEW_APP_DIRECTORY" "$INSTALL_DIRECTORY" mv "$NEW_APP_DIRECTORY" "$INSTALL_DIRECTORY"