From 710c15b064cd4466d7f581b0b5e817211c5a25bc Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Mon, 15 Aug 2022 02:34:06 +0200 Subject: [PATCH] spreaded if for more readability --- unattended.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unattended.sh b/unattended.sh index 55750c5..e1cb639 100755 --- a/unattended.sh +++ b/unattended.sh @@ -2,7 +2,9 @@ xorriso -osirrox on -indev debian-11.3.0-amd64-netinst.iso -extract / isofiles sudo sed -i '/vesamenu.c32/d' isofiles/isolinux/isolinux.cfg -if [[ $(grep timeout_style isofiles/boot/grub/grub.cfg) == "" ]]; then sudo sed -i 's/insmod play/set timeout_style=hidden\nset timeout=0\nset default=1\n\ninsmod play/' isofiles/boot/grub/grub.cfg; fi +if [[ $(grep timeout_style isofiles/boot/grub/grub.cfg) == "" ]]; then + sudo sed -i 's/insmod play/set timeout_style=hidden\nset timeout=0\nset default=1\n\ninsmod play/' isofiles/boot/grub/grub.cfg; +fi chmod +w -R isofiles/install.amd/ gunzip isofiles/install.amd/initrd.gz