From 0782c19ec9b77ed40785043425bfcd59233d6e7d Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 29 Jan 2022 12:02:01 -0300 Subject: [PATCH] Shorten the max line length to 130 (200:355) --- install.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index a8688e1..9e9226c 100755 --- a/install.sh +++ b/install.sh @@ -251,7 +251,8 @@ checkForParu() { runInChroot "sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers" checkSudoers printWaitBox - runInChroot "cd /tmp; sudo -u $username git clone https://aur.archlinux.org/paru-bin.git; cd paru-bin; sudo -u $username makepkg -si --noconfirm; cd ..; rm -rf paru-bin" 2>&1 | debug + runInChroot "cd /tmp; sudo -u $username git clone https://aur.archlinux.org/paru-bin.git" + runInChroot "cd /tmp/paru-bin; sudo -u $username makepkg -si --noconfirm; cd ..; rm -rf paru-bin" 2>&1 | debug fi } @@ -266,7 +267,8 @@ getThePackages() { local IFS=$'\n' setDelimiters "" "ON" formatOptions <(grep "N" packages.csv | sed -n '2~1p' | cut -d',' -f1) - packages=$(dialog --separate-output --checklist "\nIf you don't want to install any packages, press Cancel." 28 46 19 "${options[@]}" 3>&1 1>&2 2>&3) + msg="\nIf you don't want to install any packages, press Cancel." + packages=$(dialog --separate-output --checklist "$msg" 28 46 19 "${options[@]}" 3>&1 1>&2 2>&3) tempFile=$(mktemp) for package in $packages; do grep "^$package," packages.csv >> "$tempFile" @@ -285,7 +287,8 @@ getThePackages() { } installImportantPackages() { - dialog --msgbox "\nWe will continue with the installation of some important packages in the background. Please press OK and wait." 8 60 + msg="\nWe will continue with the installation of some important packages in the background. Please press OK and wait." + dialog --msgbox "$msg" 8 60 pacman -Sy --noconfirm archlinux-keyring 2>&1 | debug getThePackages "Y" "installImportantPackages" runInChroot "systemctl enable NetworkManager; systemctl enable fstrim.timer" 2>&1 | debug