Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
fix: force option bug (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlxisHenry committed Dec 20, 2022
1 parent 00557cb commit 38eeb22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/func.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]];
Expand Down

0 comments on commit 38eeb22

Please sign in to comment.