diff options
author | Erich Eckner <git@eckner.net> | 2017-08-02 14:48:11 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-02 14:48:11 +0200 |
commit | 08fd25502287ba6ad3e141b9a595df879acc7968 (patch) | |
tree | 780cde59db7defcd279709455923384bb5147ba0 /bin/common-functions | |
parent | 93d2b2ee8ae79b565d57f1692f96f37695ef8b39 (diff) | |
download | builder-08fd25502287ba6ad3e141b9a595df879acc7968.tar.xz |
clean up some bashisms
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-x | bin/common-functions | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/common-functions b/bin/common-functions index 08fe9ab..14ae06e 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -14,10 +14,13 @@ find_pkgbuilds() { local git_revision="$4" local mod_git_revision="$5" + local repo_path + eval 'repo_path="${repo_paths__'"${git_repository}"'}"' + PKGBUILD=$( - eval git -C "$(printf '"${repo_paths__%s}"' "${git_repository}")" 'archive "${git_revision}" -- "${package}/repos/"' 2> /dev/null | \ + git -C "${repo_path}" archive "${git_revision}" -- "${package}/repos/" 2> /dev/null | \ tar -t 2> /dev/null | \ - grep "^$(str_to_regex "${package}/repos/${repository}")"'-.*/PKGBUILD$' | \ + grep "$(printf '^%s-.*/PKGBUILD' "$(str_to_regex "${package}/repos/${repository}")")" | \ grep -v -- '-i686/PKGBUILD$' | \ grep -v -- '[-/]\(staging\|testing\|unstable\)-[^/]\+/PKGBUILD$' | \ sort | \ |