diff options
author | Tristan Williams <tgwil@tgwil.net> | 2024-10-13 14:24:08 -0400 |
---|---|---|
committer | Tristan Williams <tgwil@tgwil.net> | 2024-10-13 14:24:08 -0400 |
commit | 09e306c76d239aaef95525e79069ffd9dc5dc739 (patch) | |
tree | 189c557659d08cb01ebc2dcf2be8ba9577a066b1 /new-user-setup.sh | |
parent | Add SBCL configuration (diff) | |
download | dotfiles.core-09e306c76d239aaef95525e79069ffd9dc5dc739.tar.gz dotfiles.core-09e306c76d239aaef95525e79069ffd9dc5dc739.tar.bz2 dotfiles.core-09e306c76d239aaef95525e79069ffd9dc5dc739.zip |
Warn user about dependencies
Diffstat (limited to 'new-user-setup.sh')
-rwxr-xr-x | new-user-setup.sh | 22 |
1 files changed, 22 insertions, 0 deletions
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 @@ | |||
10 | # This installer assumes that the dotfiles.core repository has been | 10 | # This installer assumes that the dotfiles.core repository has been |
11 | # cloned into the $HOME directory under the name 'dotfiles.core'. It | 11 | # cloned into the $HOME directory under the name 'dotfiles.core'. It |
12 | # should be cloned and run this way for every new user. | 12 | # should be cloned and run this way for every new user. |
13 | # | ||
14 | # This installer also assumes that dotfiles.sys and all necessary | ||
15 | # packages have been installed. | ||
13 | 16 | ||
14 | 17 | ||
15 | # Messages passed to the user by this script are in 8-char columns. | 18 | # Messages passed to the user by this script are in 8-char columns. |
@@ -43,6 +46,25 @@ ENDCOLOR="\e[0m" | |||
43 | # Startup message | 46 | # Startup message |
44 | echo "### Starting dotfiles.core installation... ###" | 47 | echo "### Starting dotfiles.core installation... ###" |
45 | 48 | ||
49 | # Warn user about dependencies | ||
50 | echo "" | ||
51 | echo "${WARN}WARNING: This installer assumes that dotfiles.sys and all sys-level packages have been installed.${ENDCOLOR}" | ||
52 | echo "[A]bort, [C]ontinue" | ||
53 | echo -en "\033[1A\033[1000C" | ||
54 | read -n1 confirm | ||
55 | while | ||
56 | case $confirm in | ||
57 | "a"|"A") | ||
58 | exit 0;; | ||
59 | "c"|"C") | ||
60 | break;; | ||
61 | *) | ||
62 | echo -e "${WARN}ERROR : Invalid selection, try again...${ENDCOLOR}" | ||
63 | invalid_selection=1;; | ||
64 | esac | ||
65 | [[ $invalid_selection==1 ]] | ||
66 | do true; done | ||
67 | |||
46 | 68 | ||
47 | ######################################################################## | 69 | ######################################################################## |
48 | ## Put files into place | 70 | ## Put files into place |