Selaa lähdekoodia

fix: Unbound variable (#77)

Kroese 1 vuosi sitten
vanhempi
sitoutus
c479b6a753
1 muutettua tiedostoa jossa 7 lisäystä ja 7 poistoa
  1. 7 7
      src/install.sh

+ 7 - 7
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