From 41cfa5e56467411151fccda3f46ec0f8ce95d173 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Fri, 29 May 2020 13:25:27 +0100 Subject: Add welcome message --- gohan.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gohan.sh b/gohan.sh index 1d45a6d..5ab6ba0 100644 --- a/gohan.sh +++ b/gohan.sh @@ -9,9 +9,18 @@ installpkg(){ pacman --noconfirm --needed -S "$1" >/dev/null 2>&1 ;} error() { clear; printf "ERROR:\\n%s\\n" "$1"; exit;} +welcomemsg() { \ + dialog --title "Welcome!" --msgbox "Welcome to my Arch Linux installation script!\\n\\nThis script will automatically install a fully-featured Linux desktop, which I use as my main machine.\\n\\n-David" 10 60 + + dialog --colors --title "Important Note!" --yes-label "All ready!" --no-label "Return..." --yesno "Be sure the computer you are using has current pacman updates and refreshed Arch keyrings.\\n\\nIf it does not, the installation of some programs might fail." 8 70 + } + ### 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?" + +# Welcome user. +welcomemsg || error "User exited." -- cgit v1.2.3-13-gbd6f