aboutsummaryrefslogtreecommitdiff
path: root/new-user-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'new-user-setup.sh')
-rwxr-xr-xnew-user-setup.sh22
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
44echo "### Starting dotfiles.core installation... ###" 47echo "### Starting dotfiles.core installation... ###"
45 48
49# Warn user about dependencies
50echo ""
51echo "${WARN}WARNING: This installer assumes that dotfiles.sys and all sys-level packages have been installed.${ENDCOLOR}"
52echo "[A]bort, [C]ontinue"
53echo -en "\033[1A\033[1000C"
54read -n1 confirm
55while
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 ]]
66do true; done
67
46 68
47######################################################################## 69########################################################################
48## Put files into place 70## Put files into place