From 38eeb226bbd5e512aa9cc8c9b888fd34a603a523 Mon Sep 17 00:00:00 2001 From: AlexisHenry Date: Tue, 20 Dec 2022 19:23:59 +0100 Subject: [PATCH] fix: force option bug (#12) --- utils/func.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utils/func.sh b/utils/func.sh index c950454..d6e0f9e 100644 --- a/utils/func.sh +++ b/utils/func.sh @@ -74,10 +74,11 @@ function fileCategory() { fi done if [[ "${category}" == "" ]]; then - if [[ "${force}" == "false" ]]; then - throw "File < ${file} > extension is not allowed"; - else + if [[ "${force}" == "true" ]]; then + debug "File < ${file} > extension is not allowed, but you use the force option." category="files" + else + throw "File < ${file} > extension is not allowed"; fi fi if [[ "${debug}" == "true" ]];