Skip to content

Commit

Permalink
shellcheck: grml-live: fix SC2018/SC2019
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Nov 26, 2024
1 parent 033f247 commit 01955a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grml-live
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 01955a6

Please sign in to comment.