From a2d3ff6417b289da5ee77e7493a09bb30685a637 Mon Sep 17 00:00:00 2001 From: Gaurav Nelson Date: Tue, 16 Jun 2020 09:19:01 +1000 Subject: [PATCH] File extension check fix --- entrypoint.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 78957db..9b9aeed 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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}"