From 77c563d1e579e87f6b7cb887dd50664120560909 Mon Sep 17 00:00:00 2001 From: siegmund-heiss-ich <119589995+siegmund-heiss-ich@users.noreply.github.com> Date: Tue, 23 May 2023 00:46:57 +0200 Subject: [PATCH] Also fix my brain's issues --- 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 85d4f4926f..e0f3a44709 100755 --- a/distribution/macos/updater.sh +++ b/distribution/macos/updater.sh @@ -33,9 +33,9 @@ trap 'error_handler ${LINENO}' ERR # After the third time checking, this script exits with status 1 attempt=0 -while [ attempt -lt 3 ]; do +do if lsof -p $APP_PID +r 1 &>/dev/null; then - if [ attempt -eq 2 ]; then + if [ $attempt -eq 2 ]; then exit 1 fi sleep 1