From a13b023b35017eee9a9a254429f0ac4d1850bf38 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 6 Jun 2016 20:24:24 +0200 Subject: travis: fix changed_repos() to print only dirs, not files --- .travis/build-pkgs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.travis') diff --git a/.travis/build-pkgs b/.travis/build-pkgs index 6c65407041..75fc444674 100755 --- a/.travis/build-pkgs +++ b/.travis/build-pkgs @@ -8,8 +8,11 @@ set -eu # changed/created in the specified revisions. changed_repos() { local commit_ish="$1" + local repos="$(find * -type d -maxdepth 0 ! -name '.*')" - git diff-tree --name-only "$commit_ish" | grep -v '^\..*' || echo '' + # Print names of dirs in the current directory (it's *not* recursive) + # that contain some changes and consider only dirs listed in $repos. + git diff-tree --name-only "$commit_ish" -- $repos } # Prints names of repo's subdirs (i.e. abuilds) that contains APKBUILDs which -- cgit v1.2.3