From 01181b2f642189f6ced8e1c510dc116138ba34b2 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Fri, 29 May 2020 13:19:02 +0100 Subject: Install dialog as it will be required by the install script --- gohan.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 # 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?" -- cgit v1.2.3-13-gbd6f