From 27ff823bc0f5b6c8bc9ae72eeb162bbeb218b85d Mon Sep 17 00:00:00 2001 From: William Wernert Date: Thu, 18 Mar 2021 13:09:46 -0400 Subject: [PATCH] [fix] Don't set is_cloud in a subshell --- setup/so-setup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/so-setup b/setup/so-setup index 6c77fcd5e..667951ef4 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -361,10 +361,11 @@ percentage=0 echo "Could not install packages required for setup, exiting now." >> "$setup_log" 2>&1 kill -SIGUSR1 "$setup_proc"; exit 1 fi - set_progress_str 99 "Detecting whether setup is running in the cloud." nolog - detect_cloud } | progress '...' +echo "Checking if setup is running in the cloud..." +detect_cloud + short_name=$(echo "$HOSTNAME" | awk -F. '{print $1}') MINION_ID=$(echo "${short_name}_${install_type}" | tr '[:upper:]' '[:lower:]')