From 81ebea04511511cc4ca131e357ef2fa226e0b245 Mon Sep 17 00:00:00 2001 From: Dan Marr Date: Tue, 23 Jun 2026 16:07:30 -0400 Subject: [PATCH] Fix non-root exit checks at start of so-setup --- setup/so-setup | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup/so-setup b/setup/so-setup index 6c77e781c..dd024e275 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -9,14 +9,17 @@ # Make sure you are root before doing anything uid="$(id -u)" if [ "$uid" -ne 0 ]; then - echo "This script must be run using sudo!" - fail_setup + echo "This script must be run using sudo!" >&2 + exit 1 fi # Save the original argument array since we modify it original_args=("$@") -cd "$(dirname "$0")" || fail_setup +cd "$(dirname "$0")" || { + echo "Unable to change to setup directory" >&2 + exit 1 +} echo "Getting started..."