diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-18 11:12:18 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-18 11:12:18 -0400 |
commit | e8f411803648f64b386dd2970b024b9ba15ba682 (patch) | |
tree | ca56d48e18c4801be9ab00bee901a830cc6e9ec9 /db-move | |
parent | bcaa90a2e6f26191ff4aa9e0279080d1efeec3e7 (diff) |
The eval+printf %q thing wasn't worth the hard-to-read code
Diffstat (limited to 'db-move')
-rwxr-xr-x | db-move | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,7 +29,7 @@ for pkgbase in "${args[@]:2}"; do for pkgarch in "${ARCHES[@]}" 'any'; do xbsrepo_from="$(xbs releasepath ${pkgbase} ${repo_from} ${pkgarch})" if [ -r "${xbsrepo_from}/PKGBUILD" ]; then - eval "pkgnames=($(. "${xbsrepo_from}/PKGBUILD"; printf '%q ' "${pkgname[@]}"))" + pkgnames=($(. "${xbsrepo_from}/PKGBUILD"; echo "${pkgname[@]}")) if [ ${#pkgnames[@]} -lt 1 ]; then die "Could not read pkgname" fi @@ -71,7 +71,7 @@ for pkgbase in "${args[@]:2}"; do else tarches=("${pkgarch}") fi - eval "pkgnames=($(. "${dir_to}/PKGBUILD"; printf '%q ' "${pkgname[@]}"))" + pkgnames=($(. "${dir_to}/PKGBUILD"; echo "${pkgname[@]}")) for pkgname in "${pkgnames[@]}"; do pkgver=$(. "${dir_to}/PKGBUILD"; get_full_version "${pkgname}") |