From 01955a6a926ccb49caa56b314e112c54125b1681 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 26 Nov 2024 14:35:48 +0100 Subject: [PATCH] shellcheck: grml-live: fix SC2018/SC2019 --- grml-live | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grml-live b/grml-live index c7c3148e..52d7ee15 100755 --- a/grml-live +++ b/grml-live @@ -427,7 +427,7 @@ fi # assume sane defaults (if not set already) {{{ [ -n "$ARCH" ] || ARCH="$(dpkg --print-architecture)" -[ -n "$CLASSES" ] || CLASSES="GRMLBASE,GRML_FULL,$(echo "${ARCH}" | tr 'a-z' 'A-Z')" +[ -n "$CLASSES" ] || CLASSES="GRMLBASE,GRML_FULL,$(echo "${ARCH}" | tr '[:lower:]' '[:upper:]')" [ -n "$DATE" ] || DATE="$(date +%Y-%m-%d)" [ -n "$DISTRI_INFO" ] || DISTRI_INFO='Grml - Live Linux for system administrators' [ -n "$DISTRI_NAME" ] || DISTRI_NAME="grml" @@ -666,7 +666,7 @@ case "${SUITE}" in # avoid having to maintain DEBIAN_UNSTABLE *and* DEBIAN_SID class files: sid) CLASSES="DEBIAN_UNSTABLE,$CLASSES" ;; # otherwise map e.g. bookworm to DEBIAN_BOOKWORM: - *) CLASSES="DEBIAN_$(echo "$SUITE" | tr 'a-z' 'A-Z'),$CLASSES";; + *) CLASSES="DEBIAN_$(echo "$SUITE" | tr '[:lower:]' '[:upper:]'),$CLASSES";; esac export SUITE # make sure it's available in FAI scripts