diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-06-06 20:24:24 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-06-07 12:19:23 +0200 |
commit | a13b023b35017eee9a9a254429f0ac4d1850bf38 (patch) | |
tree | d8cfed26740c61659db619259a1ff201fecd9439 /.travis | |
parent | 19836dc2130d94520c60c31a59a0379da8453e28 (diff) | |
download | alpine_aports-a13b023b35017eee9a9a254429f0ac4d1850bf38.tar.bz2 alpine_aports-a13b023b35017eee9a9a254429f0ac4d1850bf38.tar.xz alpine_aports-a13b023b35017eee9a9a254429f0ac4d1850bf38.zip |
travis: fix changed_repos() to print only dirs, not files
Diffstat (limited to '.travis')
-rwxr-xr-x | .travis/build-pkgs | 5 |
1 files changed, 4 insertions, 1 deletions
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 | |||
8 | # changed/created in the specified revisions. | 8 | # changed/created in the specified revisions. |
9 | changed_repos() { | 9 | changed_repos() { |
10 | local commit_ish="$1" | 10 | local commit_ish="$1" |
11 | local repos="$(find * -type d -maxdepth 0 ! -name '.*')" | ||
11 | 12 | ||
12 | git diff-tree --name-only "$commit_ish" | grep -v '^\..*' || echo '' | 13 | # Print names of dirs in the current directory (it's *not* recursive) |
14 | # that contain some changes and consider only dirs listed in $repos. | ||
15 | git diff-tree --name-only "$commit_ish" -- $repos | ||
13 | } | 16 | } |
14 | 17 | ||
15 | # Prints names of repo's subdirs (i.e. abuilds) that contains APKBUILDs which | 18 | # Prints names of repo's subdirs (i.e. abuilds) that contains APKBUILDs which |