From 589a630610fff26f6a549d82c73be61b74187327 Mon Sep 17 00:00:00 2001 From: siegmund-heiss-ich <119589995+siegmund-heiss-ich@users.noreply.github.com> Date: Tue, 23 May 2023 01:07:10 +0200 Subject: [PATCH] Move set -e that lsof doesn't trigger exit 1 --- distribution/macos/updater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/macos/updater.sh b/distribution/macos/updater.sh index e0f3a44709..332a7cde31 100755 --- a/distribution/macos/updater.sh +++ b/distribution/macos/updater.sh @@ -1,7 +1,5 @@ #!/bin/bash -set -e - INSTALL_DIRECTORY=$1 NEW_APP_DIRECTORY=$2 APP_PID=$3 @@ -45,6 +43,8 @@ do (( attempt++ )) done +set -e + # Now replace and reopen. rm -rf "$INSTALL_DIRECTORY" mv "$NEW_APP_DIRECTORY" "$INSTALL_DIRECTORY"