fix core: -remove had incorrectly coded if statement for yes/no input

This commit is contained in:
prplwtf 2024-02-21 12:04:52 +01:00
parent c4a1354fd5
commit b4599ce06c

View file

@ -1242,7 +1242,7 @@ if [[ ( $2 == "-r" ) || ( $2 == "-remove" ) ]]; then VCMD="y"
PRINT INPUT "Do you want to proceed with this transaction? Some files might not be removed properly. (y/N)" PRINT INPUT "Do you want to proceed with this transaction? Some files might not be removed properly. (y/N)"
read -r YN read -r YN
if [[ ( $YN == "n"* ) || ( $YN == "N"* ) || ( $YN == "" ) ]]; then PRINT INFO "Extension removal cancelled.";exit 1;fi if [[ ( ( ${YN} != "y"* ) && ( ${YN} != "Y"* ) ) || ( ( ${YN} == "" ) ) ]]; then PRINT INFO "Extension removal cancelled.";exit 1;fi
PRINT INFO "Searching and validating framework dependencies.." PRINT INFO "Searching and validating framework dependencies.."
depend depend