Merge pull request #53 from gaurav-nelson/file-ext

File extension check fix
This commit is contained in:
Gaurav Nelson 2020-06-16 09:29:34 +10:00 committed by GitHub
commit c44c6ba908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}"