diff options
author | 2021-09-27 02:37:39 -0400 | |
---|---|---|
committer | 2021-09-27 02:37:39 -0400 | |
commit | 088812be4e5e61bb614d90df14dc7a7117b38d51 (patch) | |
tree | a5d3dd725b6eb26bbaa1b077a038cdff5eb8ac3b | |
parent | delete unused CUTF_ADDED variable (diff) | |
download | locale-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-x | locale-gen | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |