Install dialog if not found in install_packages

main
Ian Mancini 5 years ago
parent e52d9464a3
commit 95ccc39a93

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
set -Eeuo pipefail set -uo pipefail
if (( $EUID != 0 )); then if (( $EUID != 0 )); then
echo "Should be run as root" echo "Should be run as root"
@ -15,6 +15,15 @@ if [[ $setuppacman =~ [yY] ]]; then
source "./setup_pacman" source "./setup_pacman"
fi 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" DEFAULT_STATE="on"
files="" files=""

@ -1 +1 @@
base base-devel linux linux-firmware base base-devel linux linux-firmware dialog

Loading…
Cancel
Save