From ce8aa45d0cc75a7245f07aea6f0fe008fc95bac7 Mon Sep 17 00:00:00 2001 From: am-periphery Date: Sat, 14 Mar 2026 11:22:25 +0000 Subject: [PATCH] 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. --- uninstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uninstall.sh b/uninstall.sh index 73d2bbdb..2c3ffea2 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -68,7 +68,7 @@ if [[ "${myANSIBLE_DISTRIBUTIONS[@]}" =~ "${myCURRENT_DISTRIBUTION}" ]]; fi # 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 then myANSIBLE_BECOME_OPTION="--become --ask-become-pass"