diff --git a/setup/install_packages b/setup/install_packages index 55f5deb..fd207ba 100755 --- a/setup/install_packages +++ b/setup/install_packages @@ -1,6 +1,6 @@ #!/bin/sh -set -Eeuo pipefail +set -uo pipefail if (( $EUID != 0 )); then echo "Should be run as root" @@ -15,6 +15,15 @@ if [[ $setuppacman =~ [yY] ]]; then source "./setup_pacman" fi +echo ":: Checking if dialog is installed" +pacman -Q dialog &> /dev/null +if [ $? = 1 ]; then + echo ":: Installing dialog" + pacman -Syu dialog +else + echo ":: Success: dialog is installed" +fi + DEFAULT_STATE="on" files="" diff --git a/setup/packages/core b/setup/packages/core index 96f097a..fd24036 100644 --- a/setup/packages/core +++ b/setup/packages/core @@ -1 +1 @@ -base base-devel linux linux-firmware +base base-devel linux linux-firmware dialog