Fix conditional check in uninstall.sh using assignment instead of comparison

The sudo access check on line 71 was using `if myANSIBLE_TAG="Debian"` which
assigns "Debian" to the variable instead of comparing it. This means the
then branch is always taken regardless of the actual distro.

Matches the correct pattern already used in install.sh line 254.
This commit is contained in:
am-periphery 2026-03-14 11:22:25 +00:00
parent 13bf21bb82
commit ce8aa45d0c

View file

@ -68,7 +68,7 @@ if [[ "${myANSIBLE_DISTRIBUTIONS[@]}" =~ "${myCURRENT_DISTRIBUTION}" ]];
fi fi
# Check type of sudo access # Check type of sudo access
if myANSIBLE_TAG="Debian"; if [ "$myANSIBLE_TAG" = "Debian" ];
# Debian 13 - sudo seems to apply stricter settings, we now ask for the become password # Debian 13 - sudo seems to apply stricter settings, we now ask for the become password
then then
myANSIBLE_BECOME_OPTION="--become --ask-become-pass" myANSIBLE_BECOME_OPTION="--become --ask-become-pass"