From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E3386158016 for ; Mon, 27 Sep 2021 06:49:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BE96E091F; Mon, 27 Sep 2021 06:49:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CCCC3E08A8 for ; Mon, 27 Sep 2021 06:49:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D5D25342E77 for ; Mon, 27 Sep 2021 06:49:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F3A5310D for ; Mon, 27 Sep 2021 06:49:10 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1632724659.088812be4e5e61bb614d90df14dc7a7117b38d51.vapier@gentoo> Subject: [gentoo-commits] proj/locale-gen:master commit in: / X-VCS-Repository: proj/locale-gen X-VCS-Files: locale-gen X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 088812be4e5e61bb614d90df14dc7a7117b38d51 X-VCS-Branch: master Date: Mon, 27 Sep 2021 06:49:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 885cf2c4-3c10-47f7-9162-9acfe908c61e X-Archives-Hash: 01b22a62176658dacf999646d5006c51 commit: 088812be4e5e61bb614d90df14dc7a7117b38d51 Author: Mike Frysinger gentoo org> AuthorDate: Mon Sep 27 06:37:39 2021 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Sep 27 06:37:39 2021 +0000 URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=088812be 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 gentoo.org> locale-gen | 10 +++++----- 1 file 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