summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-09-03 14:44:05 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-09-12 22:14:31 +0300
commitd9745d995981183832c14fc63560ddfa49972f5d (patch)
treebe9f3985fc559173e08daefef03c1c7d6ba13def /eclass/vdr-plugin-2.eclass
parentselinux-policy-2.eclass: fix UnquotedVariable of S (diff)
downloadgentoo-d9745d995981183832c14fc63560ddfa49972f5d.tar.gz
gentoo-d9745d995981183832c14fc63560ddfa49972f5d.tar.bz2
gentoo-d9745d995981183832c14fc63560ddfa49972f5d.zip
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@gentoo.org>
Diffstat (limited to 'eclass/vdr-plugin-2.eclass')
-rw-r--r--eclass/vdr-plugin-2.eclass7
1 files 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