summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-05-29 13:19:02 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-05-29 13:19:02 +0100
commit01181b2f642189f6ced8e1c510dc116138ba34b2 (patch)
tree97d6aa0f20ccf5b52923b09135644f4f17cea2bb
parent6e7ef6ce208fca8ed4043d6a78428b0c61cbd613 (diff)
Install dialog as it will be required by the install script
-rw-r--r--gohan.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/gohan.sh b/gohan.sh
index 7cc5761..12db841 100644
--- a/gohan.sh
+++ b/gohan.sh
@@ -2,3 +2,14 @@
# My Arch Linux installation script
# by David T. Sadler <davidtsadler@googlemail.com>
# License: GNU GPLv3
+
+### FUNCTIONS ###
+
+installpkg(){ pacman --noconfirm --needed -S "$1" >/dev/null 2>&1 ;}
+
+### THE ACTUAL SCRIPT ###
+
+### This is how everything happens in an intuitive format and order.
+
+# Check if user is root on Arch distro. Install dialog.
+installpkg dialog || error "Are you sure you're running this as the root user and have an internet connection?"