Improved the change detection logic for the stackbre PR script

This commit is contained in:
Laurent Goderre 2018-04-30 21:22:43 -04:00
parent 9f50f45af5
commit 16282e9e30
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ function updated() {
local images_changed
IFS=' ' read -ra versions <<< "$(IFS=','; get_versions)"
images_changed=$(git show --name-only "$COMMIT_ID" "${versions[@]}")
images_changed=$(git diff --name-only "$COMMIT_ID".."$COMMIT_ID"~1 "${versions[@]}")
if [ -z "$images_changed" ]; then
return 1