From 00dd38b83d59837e43524992d7949e298ca0cc2d Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 14 Mar 2021 16:12:28 +1300 Subject: [PATCH] repo: get changed files --- repo/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repo/entrypoint.sh b/repo/entrypoint.sh index 429ead9..d9fc973 100755 --- a/repo/entrypoint.sh +++ b/repo/entrypoint.sh @@ -29,9 +29,9 @@ do echo "Commit SHA: $pkg" echo "Changed files:" - git diff-tree --no-commit-id --name-only -r $pkg + git diff --name-only $pkg^1 $pkg - PACKAGES=$(git diff-tree --no-commit-id --name-only -r $pkg | awk -F/ '{ print $2 "-" $3 }' | sort -u) + PACKAGES=$(git diff --name-only $pkg^1 $pkg | awk -F/ '{ print $2 "-" $3 }' | sort -u) echo "Building packages: $PACKAGES" for package in "$PACKAGES"; do make -j16 $package.pkg.tar.gz