Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-02 14:48:11 +0200
committerErich Eckner <git@eckner.net>2017-08-02 14:48:11 +0200
commit08fd25502287ba6ad3e141b9a595df879acc7968 (patch)
tree780cde59db7defcd279709455923384bb5147ba0 /bin/common-functions
parent93d2b2ee8ae79b565d57f1692f96f37695ef8b39 (diff)
clean up some bashisms
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions7
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 | \