From 155281d6541894e43e5cbf7e4a117b26ba3f8214 Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Fri, 11 Oct 2024 21:59:24 -0700 Subject: [PATCH] Improved MacOs startup --- dev-scripts/dev-clean-run-as-dev-macos-step-2.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev-scripts/dev-clean-run-as-dev-macos-step-2.sh b/dev-scripts/dev-clean-run-as-dev-macos-step-2.sh index 0598d6c..3070f9a 100755 --- a/dev-scripts/dev-clean-run-as-dev-macos-step-2.sh +++ b/dev-scripts/dev-clean-run-as-dev-macos-step-2.sh @@ -1,10 +1,11 @@ #!/bin/sh -if ! [ $(id -u) <> 0 ]; then +if ! [ $(id -u) ] <>0; then echo "Must not be run as sudo or root on macos (macos security) please run the step 1 as root and this step as standard user" exit 1 fi +pwd >currentdirectory docker service rm $(docker service ls -q) sleep 1 docker secret rm captain-salt