From af252fd0f60e0b9cb00e9ea0ec9366200b147a1f Mon Sep 17 00:00:00 2001 From: George Adams Date: Thu, 25 Jan 2024 11:13:57 +0000 Subject: [PATCH] include changes to entrypoint.sh in official manifest generator --- dockerhub_doc_config_update.sh | 4 ++++ 1 file changed, 4 insertions(+) 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