File extension check fix

This commit is contained in:
Gaurav Nelson 2020-06-16 09:19:01 +10:00
parent 0eb8a0e224
commit a2d3ff6417

View File

@ -18,10 +18,11 @@ FOLDER_PATH="$4"
MAX_DEPTH="$5"
CHECK_MODIFIED_FILES="$6"
BASE_BRANCH="$7"
if [ "$8" -eq 0 ]; then
FILE_EXTENSION=".md"
else
if [ -z "$8" ]; then
FILE_EXTENSION="$8"
else
echo -e "${YELLOW}No file extension specified, using .md as extension.${NC}"
FILE_EXTENSION=".md"
fi
echo -e "${BLUE}USE_QUIET_MODE: $1${NC}"