diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2018-03-15 04:13:31 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-03-15 05:39:31 +0100 |
commit | 9e52a36794552b77ecf26f7f34b226d096978f1e (patch) | |
tree | 15396663caafff142394868c1dc814cf200d5a72 /scripts/libmakepkg/source/bzr.sh.in | |
parent | f054351e528eebf985378f2f4cb0f621ca15023d (diff) | |
download | pacman-9e52a36794552b77ecf26f7f34b226d096978f1e.tar.gz pacman-9e52a36794552b77ecf26f7f34b226d096978f1e.tar.xz |
makepkg: use the `declare` builtin when backing up variables to eval
Rather than manually crafting foo_backup in a loop and eval'ing them
with a complicated escape pattern, store every splitpkg_overrides
element into a single variable via the eval-friendly `declare` builtin.
An alternative to eval would be using `printf -v` but this does not work
for arrays.
This has the additional benefit of reducing the number of
variables/arrays floating around in the environment.
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/source/bzr.sh.in')
0 files changed, 0 insertions, 0 deletions