index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-06-28 23:32:12 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-28 23:32:12 +0200 |
commit | c6984b98277071bd0e2830adaac7e5925ed4130c (patch) | |
tree | e715035227c9748df1415e717210a5f1edd8820e /bin/common-functions | |
parent | cdb3bcea206a7397686921ddacd50c1a39e42cd2 (diff) |
-rwxr-xr-x | bin/common-functions | 8 |
diff --git a/bin/common-functions b/bin/common-functions index 442f5b2..edec2fe 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -19,7 +19,7 @@ find_pkgbuilds() { local mod_git_revision="$5" PKGBUILD="$( - eval git -C "$(printf '$repo_paths__%s' "${git_repository}")" archive "${git_revision}" -- "${package}/repos/" 2> /dev/null | \ + eval git -C "$(printf '"${repo_paths__%s}"' "${git_repository}")" 'archive "${git_revision}" -- "${package}/repos/"' 2> /dev/null | \ tar -t 2> /dev/null | \ grep "^$(str_to_regex "${package}/repos/${repository}")"'-.*/PKGBUILD$' | \ grep -v -- '-i686/PKGBUILD$' | \ @@ -54,7 +54,7 @@ find_repository_with_commit() { local repository for repository in ${repo_names}; do - if [ "$(eval git -C "$(printf '$repo_paths__%s' "${repository}")" cat-file -t "$1" 2> /dev/null)" = "commit" ]; then + if [ "$(eval git -C "$(printf '"${repo_paths__%s}"' "${repository}")" cat-file -t '"$1"' 2> /dev/null)" = "commit" ]; then echo "${repository}" return 0 fi @@ -77,7 +77,7 @@ find_git_repository_to_package_repository() { fi if [ -n "$( ( - eval ls "$(printf '$repo_paths__%s' "${repository}")/"*"/repos" | \ + eval ls "$(printf '"${repo_paths__%s}"' "${repository}")/"*"/repos" | \ grep -v ':$' | \ sed 's|-[^-]\+$||' | \ sort -u @@ -339,7 +339,7 @@ make_source_info() { if [ -n "${PKGBUILD}" ]; then content="$( - eval git -C "$(printf '$repo_paths__%s' "${git_repo}")" archive "${git_revision}" -- "${PKGBUILD}" | \ + eval git -C "$(printf '"${repo_paths__%s}"' "${git_repo}")" 'archive "${git_revision}" -- "${PKGBUILD}"' | \ tar -Ox )" else |