From bf664fc227d4236316e9591869c8a974a6234df4 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 22 Jan 2024 23:31:21 +0100 Subject: [PATCH] fix: Unbound variable --- src/install.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/install.sh b/src/install.sh index 6d9efa1bc..456e63ba0 100644 --- a/src/install.sh +++ b/src/install.sh @@ -39,13 +39,6 @@ if [[ "${VERSION,,}" == "tiny11" ]]; then VERSION="https://archive.org/download/tiny-11-core-x-64-beta-1/tiny11%20core%20x64%20beta%201.iso" fi -if [ -z "$MANUAL" ]; then - - MANUAL="N" - [[ "${BASE,,}" == "tiny10"* ]] && MANUAL="Y" - -fi - CUSTOM="custom.iso" [ ! -f "$STORAGE/$CUSTOM" ] && CUSTOM="Custom.iso" @@ -100,6 +93,13 @@ fi html "$MSG" TMP="$STORAGE/tmp" +if [ -z "$MANUAL" ]; then + + MANUAL="N" + [[ "${BASE,,}" == "tiny10"* ]] && MANUAL="Y" + +fi + if [ -f "$STORAGE/$BASE" ]; then # Check if the ISO was already processed by our script