From 09e306c76d239aaef95525e79069ffd9dc5dc739 Mon Sep 17 00:00:00 2001 From: Tristan Williams Date: Sun, 13 Oct 2024 14:24:08 -0400 Subject: Warn user about dependencies --- new-user-setup.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'new-user-setup.sh') diff --git a/new-user-setup.sh b/new-user-setup.sh index 7ce8b0f..18d020a 100755 --- a/new-user-setup.sh +++ b/new-user-setup.sh @@ -10,6 +10,9 @@ # This installer assumes that the dotfiles.core repository has been # cloned into the $HOME directory under the name 'dotfiles.core'. It # should be cloned and run this way for every new user. +# +# This installer also assumes that dotfiles.sys and all necessary +# packages have been installed. # Messages passed to the user by this script are in 8-char columns. @@ -43,6 +46,25 @@ ENDCOLOR="\e[0m" # Startup message echo "### Starting dotfiles.core installation... ###" +# Warn user about dependencies +echo "" +echo "${WARN}WARNING: This installer assumes that dotfiles.sys and all sys-level packages have been installed.${ENDCOLOR}" +echo "[A]bort, [C]ontinue" +echo -en "\033[1A\033[1000C" +read -n1 confirm +while + case $confirm in + "a"|"A") + exit 0;; + "c"|"C") + break;; + *) + echo -e "${WARN}ERROR : Invalid selection, try again...${ENDCOLOR}" + invalid_selection=1;; + esac + [[ $invalid_selection==1 ]] +do true; done + ######################################################################## ## Put files into place -- cgit v1.2.3