macos: Fix relaunch with updater when no arguments were provided to the emulator (#4987)

The updater still seems to be erroring when replacing installed folder under normal operations.
This commit is contained in:
Mary 2023-05-17 19:02:15 +02:00 committed by GitHub
parent 22202be394
commit f8cdd5f484
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,4 +36,9 @@ sleep 1
# 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"
if [ "$#" -le 3 ]; then
open -a "$INSTALL_DIRECTORY"
else
open -a "$INSTALL_DIRECTORY" --args "$APP_ARGUMENTS" open -a "$INSTALL_DIRECTORY" --args "$APP_ARGUMENTS"
fi