Added extra check

This commit is contained in:
Purple
2025-02-12 16:45:07 +00:00
parent 8459ae1b52
commit de35fcae6a

View File

@@ -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."