From de35fcae6aec348ad20e598278bfa954d19bd5a9 Mon Sep 17 00:00:00 2001 From: Purple Date: Wed, 12 Feb 2025 16:45:07 +0000 Subject: [PATCH] Added extra check --- Mac/Flight Checks/tailscale.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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."