From 51183fb2a1278f9a433231639dca13627dbfc0dd Mon Sep 17 00:00:00 2001 From: salva09 Date: Wed, 1 Jul 2020 20:14:52 +0000 Subject: [PATCH] change variable name to cap --- pacstrap/pacstrap.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pacstrap/pacstrap.sh b/pacstrap/pacstrap.sh index a9cc622..2436de0 100755 --- a/pacstrap/pacstrap.sh +++ b/pacstrap/pacstrap.sh @@ -10,25 +10,25 @@ fi pacman -Sy --noconfirm # kernel selection -kernel="$(iroot kernel)" +KERNEL="$(iroot kernel)" if ! [ kernel -eq "linux" || kernel -eq "linux-lts" ]; then # fallbacks to lts kernel - kernel="linux-lts" + KERNEL="linux-lts" fi # we're on arch if command -v pacstrap; then - while ! pacstrap /mnt base ${kernel} ${kernel}-headers linux-firmware reflector; do + while ! pacstrap /mnt base ${KERNEL} ${KERNEL}-headers linux-firmware reflector; do dialog --msgbox "package installation failed \nplease reconnect to internet" 700 700 done else # artix or manjaro if command -v systemctl; then - while ! basestrap /mnt base ${kernel} ${kernel}-headers linux-firmware; do + while ! basestrap /mnt base ${KERNEL} ${KERNEL}-headers linux-firmware; do dialog --msgbox "manjaro package installation failed \nplease reconnect to internet" 700 700 done else - while ! basestrap /mnt runit elogind-runit base base-devel ${kernel} ${kernel}-headers linux-firmware; do + while ! basestrap /mnt runit elogind-runit base base-devel ${KERNEL} ${KERNEL}-headers linux-firmware; do sleep 2 dialog --msgbox "artix package installation failed \nplease reconnect to internet" 700 700 done -- 2.11.0