Make DISC_NAME compliant with ECMA-119

This commit is contained in:
Fierelier 2022-09-21 11:49:46 +02:00
parent 5962d2f882
commit 92af23a180

View File

@ -2,6 +2,9 @@
set -e
DISC_NAME="${WDVN_VER:0:3} $WDVN_ARCH $WDVN_DATE"
DISC_NAME="${DISC_NAME:0:32}"
DISC_NAME="$(echo "$DISC_NAME" | tr "[:lower:]" "[:upper:]")"
DISC_NAME="$(echo "$DISC_NAME" | tr "-" "_")"
DISC_NAME="$(echo "$DISC_NAME" | tr "." "_")"
CHROOT="$1"
IMAGE="$2.tmp"