mirror of
https://github.com/telekom-security/tpotce.git
synced 2026-03-28 03:03:09 +00:00
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:
parent
13bf21bb82
commit
ce8aa45d0c
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue