From 24f9f3dc6c76afcea7a50d5fcea2417e16bdf199 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 17 Jan 2024 03:26:41 +0100 Subject: [PATCH] fix: Clamp label to 32 bytes --- src/install.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/install.sh b/src/install.sh index c31b5ba..7761289 100644 --- a/src/install.sh +++ b/src/install.sh @@ -62,18 +62,6 @@ fi BASE="custom.iso" [ -f "$STORAGE/$BASE" ] && return 0 -BASE="Custom.iso" -[ -f "$STORAGE/$BASE" ] && return 0 - -BASE="custom.ISO" -[ -f "$STORAGE/$BASE" ] && return 0 - -BASE="CUSTOM.iso" -[ -f "$STORAGE/$BASE" ] && return 0 - -BASE="CUSTOM.ISO" -[ -f "$STORAGE/$BASE" ] && return 0 - if [[ "$EXTERNAL" != [Yy1]* ]]; then BASE="$VERSION.iso" @@ -148,6 +136,8 @@ if [[ "$MANUAL" != [Yy1]* ]]; then fi LABEL="${BASE%.*}" +LABEL="${LABEL::32}" + ISO="$TMP/$LABEL.tmp" rm -f "$ISO"