From 2ac50b7023bf031a74c5865f5aa091caf7e955da Mon Sep 17 00:00:00 2001 From: Qian Hong Date: Thu, 11 Feb 2016 22:37:58 +0800 Subject: [PATCH] Continuous Integration: Avoid building a package repeatly if it was touched by multiple commits in a pull request. --- ci-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci-build.sh b/ci-build.sh index b09dd66684..1c0e44a506 100644 --- a/ci-build.sh +++ b/ci-build.sh @@ -14,7 +14,7 @@ git config --global user.name 'MSYS2 Continuous Integration' # Recipes cd "$(dirname "$0")" -files=($(git show --pretty=format: --name-only $(git log -1 --pretty=format:%P | cut -d' ' -f1)..HEAD)) +files=($(git show --pretty=format: --name-only $(git log -1 --pretty=format:%P | cut -d' ' -f1)..HEAD | sort -u)) for file in "${files[@]}"; do [[ "${file}" = */PKGBUILD ]] && recipes+=("${file}") done