mirror of
https://github.com/PurpleComputing/Tailscale-scripts.git
synced 2026-06-10 17:10:31 +01:00
Added extra check
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user