diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-03 17:11:13 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-03 17:11:13 (EDT) |
commit | 0a1aaa748f97d4da775a2f69e31056135de15798 (patch) | |
tree | 6d44c27fde75e6aea38b1f1e990b5412b2f1dc32 /src | |
parent | 0f5ef3a2873dbe1c7dc3a0db5419737bab680384 (diff) |
Improve binary package loop in ob-installplatconf.
Diffstat (limited to 'src')
-rw-r--r-- | src/ob-installplatconf.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ob-installplatconf.sh b/src/ob-installplatconf.sh index 147a958..107a76e 100644 --- a/src/ob-installplatconf.sh +++ b/src/ob-installplatconf.sh @@ -39,9 +39,11 @@ main() copied='true' fi - for bin_config in ../*.pkg/config; do - copy_config "${bin_config#../}" 'dest' - copied='true' + for pkg in $(ob_get_binary_packages); do + if [ -r "../${pkg}.pkg/config" ]; then + copy_config "${pkg}.pkg/config" 'dest' + copied='true' + fi done "${copied}" || ob_info "$(ob_get_msg 'no_plat_config')" |