diff options
| author | Mary <mary@mary.zone> | 2023-05-17 19:02:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-17 19:02:15 +0200 |
| commit | f8cdd5f484f1b1d0c633f6da2016713e14e4c6e7 (patch) | |
| tree | 4a4fff8a491d46bc33ec4ff4dcff996242e843ab /distribution | |
| parent | 22202be3946b5cb65511059e717af449168812f3 (diff) | |
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.
Diffstat (limited to 'distribution')
| -rwxr-xr-x | distribution/macos/updater.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/distribution/macos/updater.sh b/distribution/macos/updater.sh index b60ac34d..1b322493 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 |
