diff --git a/installer/installer.sh b/installer/installer.sh index e8982a8..db7ae0b 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -6,7 +6,7 @@ ## $2 -> If it has to be silent (0->Show, 1/not 0->Silent) ## $3 -> Where to run (sudo: sudo $3, chroot: in the chroot as root, chuser: in chroot as the created user ## $4 -> Command to run -## $5 -> Is a "various-sentence command"? (1 -> First / Not lastest, 2 -> Last ) +## $5 -> Is a "various-sentence command"? (0 -> First/Last/Unique, 1-> Not lastest ) function comm { local command local multic @@ -33,9 +33,10 @@ function comm { fi #Run command and make silent if its needed. if [[ $2 != "0" ]];then - bash -c "$command" >/dev/null 1>/dev/null + echo "SILENT" + bash -c "$command" >/dev/null 1>/dev/null else - bash -c "$command" + bash -c "$command" fi # When command finish, know if it ran succesfully @@ -61,12 +62,12 @@ if [[ ! -f "jkarch" ]];then comm "Grow cowspace for installer" "1" "sudo" "mount -o remount,size=700M /run/archiso/cowspace" #Enable pacman - comm "Configuring pacman" "1" "sudo" "pacman-key --init" "1" - comm "Configuring pacman" "1" "sudo" "pacman-key --populate" "1" - comm "Configuring pacman" "1" "sudo" "pacman -Sy archlinux-keyring --noconfirm" "2" + comm "Configuring pacman" "1" "sudo" "pacman-key --init" "0" + comm "Configuring pacman" "1" "sudo" "pacman-key --populate" "0" + comm "Configuring pacman" "1" "sudo" "pacman -Sy archlinux-keyring --noconfirm" "1" - comm "Selecting mirrors" "1" "sudo" "pacman -S reflector --noconfirm" "1" - comm "Selecting mirrors" "1" "sudo" "reflector --verbose -l 6 --sort rate --save /etc/pacman.d/mirrorlist" "2" + comm "Selecting mirrors" "1" "sudo" "pacman -S reflector --noconfirm" "0" + comm "Selecting mirrors" "1" "sudo" "reflector --verbose -l 6 --sort rate --save /etc/pacman.d/mirrorlist" "1" #Delete programs (For not updating it) sudo pacman -R clonezilla darkhttpd diffutils grml-zsh-config irssi linux-atm lvm2 man-db man-pages mc ndisc6 nmap smartmontools testdisk vi vim vim-runtime openconnect pcsclite python2 python reflector --noconfirm