From b4599ce06ca99364efba7c67e1d0b4a37f531adb Mon Sep 17 00:00:00 2001 From: prplwtf Date: Wed, 21 Feb 2024 12:04:52 +0100 Subject: [PATCH] fix `core`: -remove had incorrectly coded if statement for yes/no input --- blueprint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprint.sh b/blueprint.sh index afe4659..c9b0f53 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -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)" 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.." depend