|
|
@@ -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"
|