From 92af23a180193fbd0d72272f41e875f390e3396e Mon Sep 17 00:00:00 2001 From: Fierelier Date: Wed, 21 Sep 2022 11:49:46 +0200 Subject: [PATCH] Make DISC_NAME compliant with ECMA-119 --- path/wdvn-image-iso | 3 +++ 1 file changed, 3 insertions(+) diff --git a/path/wdvn-image-iso b/path/wdvn-image-iso index b2da595..437daf9 100755 --- a/path/wdvn-image-iso +++ b/path/wdvn-image-iso @@ -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"