From 4976ae08c4eefba48341d36b4764c6c192e6db97 Mon Sep 17 00:00:00 2001 From: pablusha Date: Sun, 25 Jan 2026 01:02:05 +0300 Subject: [PATCH] FUCKING FUCK --- plct.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plct.sh b/plct.sh index d67fbe3..3887408 100755 --- a/plct.sh +++ b/plct.sh @@ -1,6 +1,6 @@ #!/bin/bash -printf "welcome to portable linux creation tool v1.0p1\n" +printf "welcome to portable linux creation tool v1.0p2\n" printf "available distros: debian\n\n" while true; do @@ -92,7 +92,7 @@ prepare_debian() { exit 1 fi - if [ ! -n $mount ]; then + if [ -n $disk ]; then while true; do read -rp "everything is ok, type 'no' to cancel or 'yes' to preceed installation of debian $choice to $disk with $table table (DATA ON $disk WILL BE LOST): " proceeding if [ "$proceeding" = "no" ]; then @@ -122,7 +122,7 @@ prepare_debian() { } install_debian() { - if [ ! -n "$mount" ]; then + if [ -n "$disk" ]; then echo "unmounting $disk" umount $disk* @@ -195,7 +195,7 @@ install_debian() { $RUN grub-install --target=x86_64-efi --efi-directory=/boot --removable $RUN update-grub - if [ ! -n "$mount" ]; then + if [ -n "$disk" ]; then efi_uuid=$(blkid -s UUID -o value ${disk}${prefix}1) root_uuid=$(blkid -s UUID -o value ${disk}${prefix}2) echo "UUID=$efi_uuid /boot/ vfat umask=0077 0 1" >> $mount/etc/fstab @@ -207,14 +207,14 @@ install_debian() { $RUN grub-install $disk $RUN update-grub - if [ ! -n "$mount" ]; then + if [ -n "$disk" ]; then root_uuid=$(blkid -s UUID -o value ${disk}${prefix}1) echo "UUID=$root_uuid / ext4 defaults,noatime 0 1" >> $mount/etc/fstab fi fi echo 'done! chrooted you into installed system. type "exit" to finish the installation' - if [ -n "$mount" ]; then + if [ ! -n "$disk" ]; then echo "pls generate fstab manually" fi $RUN /bin/bash