]> gitweb.morketsmerke.org Git - immudex.git/commitdiff
Poprawienie błędu w instalatorze.
authorxf0r3m <jakubstasinski@protonmail.com>
Sat, 25 Apr 2026 11:54:15 +0000 (13:54 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Sat, 25 Apr 2026 11:54:15 +0000 (13:54 +0200)
tools/sbin/immudex-install

index 7d25fd664da8a9e8968998a5c5800e35dfb8c831..4e2eb6946ebf971df340431dab1b267855fa6f85 100755 (executable)
@@ -50,9 +50,13 @@ if [ "$1" ]; then
   elif [ "$1" = "--version" ]; then
     version;
   fi
-else
-if $(echo $1 | grep -q 'partition-size'); then
-  idxPartSize=$(echo $1 | cut -d "=" -f2);
+fi
+if [ "$1" ]; then
+  if $(echo $1 | grep -q 'partition-size'); then
+    idxPartSize=$(echo $1 | cut -d "=" -f2);
+  else
+    idxPartSize="3G"; 
+  fi
 else
   idxPartSize="3G"; 
 fi
@@ -202,4 +206,3 @@ EOF
   umount /media > /dev/null 2>&1;
   if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi
 fi
-fi