diff --git a/Mac/Flight Checks/tailscale.sh b/Mac/Flight Checks/tailscale.sh index 83d3b97..b447e7e 100755 --- a/Mac/Flight Checks/tailscale.sh +++ b/Mac/Flight Checks/tailscale.sh @@ -104,7 +104,12 @@ check_auth_profile() { rm /tmp/tailscale-*.sh exit 1 fi - + if [[ -z "$tsbundle" ]]; then + echo "Error: No Tailscale identifier found on the device or in the shell. The profile is: $profile_check" + echo " " + rm /tmp/tailscale-*.sh + exit 1 + fi # Verify if the auth profile matches the installed version if echo "$profile_check" | grep -q "$tsbundle"; then # echo "Success: Installed version ($tsbundle) matches the configuration profile." @@ -139,6 +144,13 @@ check_config_profile() { exit 1 fi + if [[ -z "$tsbundle" ]]; then + echo "Error: No Tailscale identifier found on the device or in the shell. The profile is: $profile_check" + echo " " + rm /tmp/tailscale-*.sh + exit 1 + fi + # Verify if the config profile matches the installed version if echo "$profile_check" | grep -q "$tsbundle"; then # echo "Success: Installed version ($tsbundle) matches the configuration profile."