diff --git a/dockerhub_doc_config_update.sh b/dockerhub_doc_config_update.sh index 0a452a4a9..3da9764eb 100755 --- a/dockerhub_doc_config_update.sh +++ b/dockerhub_doc_config_update.sh @@ -146,6 +146,10 @@ function print_official_image_file() { # See if there are any changes between the two commit sha's if git diff "$gitcommit:$dfdir/$dfname" "$official_gitcommit:$dfdir/$dfname" >/dev/null 2>&1; then diff_count=$(git diff "$gitcommit:$dfdir/$dfname" "$official_gitcommit:$dfdir/$dfname" | wc -l) + # check for diff in the entrypoint.sh file + if [ -f "$dfdir/entrypoint.sh" ]; then + diff_count=$((diff_count + $(git diff "$gitcommit:$dfdir/entrypoint.sh" "$official_gitcommit:$dfdir/entrypoint.sh" | wc -l))) + fi else # Forcefully sets a diff if the file doesn't exist diff_count=1