summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-09-27 02:37:39 -0400
committerMike Frysinger <vapier@gentoo.org>2021-09-27 02:37:39 -0400
commit088812be4e5e61bb614d90df14dc7a7117b38d51 (patch)
treea5d3dd725b6eb26bbaa1b077a038cdff5eb8ac3b
parentdelete unused CUTF_ADDED variable (diff)
downloadlocale-gen-088812be4e5e61bb614d90df14dc7a7117b38d51.tar.gz
locale-gen-088812be4e5e61bb614d90df14dc7a7117b38d51.tar.bz2
locale-gen-088812be4e5e61bb614d90df14dc7a7117b38d51.zip
add quotes around : ${...} defaults
In practice this shouldn't matter, but this makes shellcheck a bit happy in case of pathological globs in environment variables. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rwxr-xr-xlocale-gen10
1 files changed, 5 insertions, 5 deletions
diff --git a/locale-gen b/locale-gen
index 4eb75d0..03caff2 100755
--- a/locale-gen
+++ b/locale-gen
@@ -105,14 +105,14 @@ fi
if [[ -z ${JOBS_MAX} ]] ; then
JOBS_MAX=$(getconf _NPROCESSORS_ONLN 2>/dev/null)
- : ${JOBS_MAX:=1}
+ : "${JOBS_MAX:=1}"
fi
[[ ${JOBS_MAX} -lt 1 ]] && JOBS_MAX=1
[[ -n ${SET_X} ]] && set -x
-: ${KEEP:=${JUST_LIST}}
+: "${KEEP:=${JUST_LIST}}"
[[ -n ${GENERATE} ]] && UPDATE="true" && KEEP="true"
-: ${ROOT:=/}
+: "${ROOT:=/}"
ROOT="${ROOT%/}/"
if [[ ${ROOT} != "/" ]] ; then
@@ -120,7 +120,7 @@ if [[ ${ROOT} != "/" ]] ; then
exit 0
fi
-: ${EROOT:="${EPREFIX}/"}
+: "${EROOT:=${EPREFIX}/}"
if [[ ${EROOT} != "/" ]] ; then
einfo "Using locale.gen from ${EROOT}etc/"
fi
@@ -132,7 +132,7 @@ else
DESTDIR=${EROOT}
fi
-: ${CONFIG:=${EROOT}etc/locale.gen}
+: "${CONFIG:=${EROOT}etc/locale.gen}"
LOCALES=${DESTDIR}usr/share/i18n/locales
CHARMAPS=${DESTDIR}usr/share/i18n/charmaps
SUPPORTED=${DESTDIR}usr/share/i18n/SUPPORTED