@@ -45,7 +45,7 @@ inst_pacman_pkgs() {
4545 pkgs=$( grep -hvE " ^\s*#|^\s*$" " $@ " )
4646 if [[ -n " $pkgs " ]]; then
4747 echo -e " following packages will be installed ...\n$pkgs "
48- sudo pacman -Syu --needed $pkgs && echo " installation successfully" && return 0
48+ sudo pacman -Syu --noconfirm -- needed $pkgs && echo " installation successfully" && return 0
4949 echo " installation failed"
5050 else
5151 echo " pkg files are empty; abort installation"
@@ -62,7 +62,7 @@ inst_yay_pkgs() {
6262 pkgs=$( grep -hvE " ^\s*#|^\s*$" " $@ " )
6363 if [[ -n " $pkgs " ]]; then
6464 echo -e " following packages will be installed ...\n$pkgs "
65- sudo pacman -Syu --needed $pkgs && echo " installation successfully" && return 0
65+ sudo pacman -Syu --noconfirm -- needed $pkgs && echo " installation successfully" && return 0
6666 echo " installation failed"
6767 else
6868 echo " pkg files are empty; abort installation"
@@ -80,7 +80,7 @@ inst_flatpak_pkgs() {
8080 if [[ -n " $pkgs " ]]; then
8181 echo -e " following packages will be installed ...\n$pkgs "
8282 for pkg in " $pkgs " ; do
83- flatpak install flathub " $pkg " && echo " installation of *$pkg * successfully" && return 0
83+ flatpak install -y flathub " $pkg " && echo " installation of *$pkg * successfully" && return 0
8484 echo " installation failed"
8585 done
8686 else
@@ -93,9 +93,10 @@ inst_flatpak_pkgs() {
9393# installation packages
9494inst_packages () {
9595 echo " installing requirements with Pacman, Yay & Flatpak"
96- inst_pacman_pkgs $nvidia_pkgs $pacman_pkgs
97- inst_yay_pkgs $yay_pkgs
98- inst_flatpak_pkgs $flatpak_pkgs
96+ inst_pacman_pkgs $nvidia_pkgs $pacman_pkgs || return 1
97+ inst_yay_pkgs $yay_pkgs || return 1
98+ inst_flatpak_pkgs $flatpak_pkgs || return 1
99+ return 0
99100}
100101
101102# loading kernel modules
@@ -136,6 +137,6 @@ service_setup() {
136137
137138# installing packages
138139inst_packages && load_modules || exit 1
139- # services
140+ # services (no automatic aborting)
140141psql_setup # setup postgresql
141142service_setup # other services
0 commit comments