From 92fd2f13502c9aedc3d549133c7fe1b77f6aacb1 Mon Sep 17 00:00:00 2001 From: Mary Date: Wed, 17 May 2023 19:02:15 +0200 Subject: [PATCH] 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. --- distribution/macos/updater.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/distribution/macos/updater.sh b/distribution/macos/updater.sh index b60ac34df..1b3224939 100755 --- a/distribution/macos/updater.sh +++ b/distribution/macos/updater.sh @@ -36,4 +36,9 @@ sleep 1 # Now replace and reopen. rm -rf "$INSTALL_DIRECTORY" mv "$NEW_APP_DIRECTORY" "$INSTALL_DIRECTORY" -open -a "$INSTALL_DIRECTORY" --args "$APP_ARGUMENTS" + +if [ "$#" -le 3 ]; then + open -a "$INSTALL_DIRECTORY" +else + open -a "$INSTALL_DIRECTORY" --args "$APP_ARGUMENTS" +fi