]> gitweb.morketsmerke.org Git - immudex-lhe.git/commitdiff
Zmiana paramertru pozycyjnego wskazującego podaną wersję - sekcja aktualizacji, skryp...
authorxf0r3m <jakubstasinski@protonmail.com>
Sun, 23 Jul 2023 07:01:14 +0000 (09:01 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Sun, 23 Jul 2023 07:01:14 +0000 (09:01 +0200)
immudex_build

index 89c463e25bb186a48e25075371be6c86da628b1d..584ba05e5a22dbb0755f4e0dd266d187da813769 100755 (executable)
@@ -55,9 +55,9 @@ if [ "$1" ] && [ "$1" = "--update" ]; then
   cp -v $(ls -v ~/immudex-lhe/${arch}/chroot/boot/initrd.img-* | tail -1) ~/immudex-lhe/${arch}/staging/live/initrd >> ~/immudex_build.log 2>&1;
   if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi
 
-  if [ "$3" ]; then
+  if [ "$2" ]; then
          echo -n "Creating version file...";
-         echo $3 > ~/immudex-lhe/${arch}/staging/live/version;
+         echo $2 > ~/immudex-lhe/${arch}/staging/live/version;
          if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi
   fi