diff --git a/lib/buildFileList.sh b/lib/buildFileList.sh index 49c35ba5..e565868d 100755 --- a/lib/buildFileList.sh +++ b/lib/buildFileList.sh @@ -434,7 +434,7 @@ function BuildFileList() { # Set the READ_ONLY_CHANGE_FLAG since this could be exec # ########################################################## READ_ONLY_CHANGE_FLAG=1 - elif [ "${FILE_TYPE}" == "dockerfile" ] || [ "${BASE_FILE}" == *"dockerfile."* ]; then + elif [ "${FILE_TYPE}" == "dockerfile" ] || [[ "${BASE_FILE}" == *"dockerfile."* ]]; then ################################ # Append the file to the array # ################################