commit:     d9745d995981183832c14fc63560ddfa49972f5d
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  3 11:44:05 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 12 19:14:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9745d99

vdr-plugin-2.eclass: fix UnquotedVariable

For the change in vdr_detect_po_dir, use quoted [@] for better
catching cases when members in po_subdir have spaces

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 eclass/vdr-plugin-2.eclass | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/eclass/vdr-plugin-2.eclass b/eclass/vdr-plugin-2.eclass
index f8d5a18854ed..546dbb803bf1 100644
--- a/eclass/vdr-plugin-2.eclass
+++ b/eclass/vdr-plugin-2.eclass
@@ -276,10 +276,9 @@ vdr_gettext_missing() {
 # DIR ${S}/po or DIR ${S]/_subdir_/po
 vdr_detect_po_dir() {
        [[ -f po ]] && local po_dir="${S}"
-       local po_subdir=( ${S}/${PO_SUBDIR} )
-       local f
+       local po_subdir=( "${S}"/${PO_SUBDIR} )
 
-       pofile_dir=( ${po_dir} ${po_subdir[*]} )
+       pofile_dir=( ${po_dir} "${po_subdir[@]}" )
 }
 
 # @FUNCTION: vdr_linguas_support
@@ -605,7 +604,7 @@ vdr-plugin-2_src_install() {
                local linguas
                for linguas in ${LINGUAS[*]}; do
                insinto "${LOCDIR}"
-               cp -r --parents ${linguas}* ${D%/}/${LOCDIR} \
+               cp -r --parents ${linguas}* "${D%/}"/${LOCDIR} \
                        || die "could not copy linguas files"
                done
        fi

Reply via email to