Skip to content

Commit

Permalink
Merge branch 'main' into OpenSSF
Browse files Browse the repository at this point in the history
  • Loading branch information
karianna authored Mar 11, 2024
2 parents 1633237 + 83bdda1 commit 5bc00f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dockerhub_doc_config_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bc00f9

Please sign in to comment.