Adds echo intro to lets-go script

This commit is contained in:
Alicia Sykes 2022-08-30 17:40:38 +01:00
parent 715dd0d32f
commit ac0b6005b5

8
lets-go.sh Normal file → Executable file
View File

@ -15,8 +15,16 @@
DOTFILES_DIR="${DOTFILES_DIR:-$HOME/Documents/config/dotfiles}"
DOTFILES_REPO="${DOTFILES_REPO:-https://github.com/lissy93/dotfiles.git}"
# Print starting message
echo -e "\033[1;35m""Lissy93/Dotfiles Installation Script 🧰
\033[0;35mThis script will install or update dotfiles from \033[4;35m\
${DOTFILES_REPO}\033[0;35m into \033[4;35m${DOTFILES_DIR}\033[0;35m\n\
Be sure that you have read and understood config which will be applied.
If you don't want to proceed, press Ctrl+C to cancel now...\033[0m\n"
# If dotfiles not yet present then clone
if [[ ! -d "$DOTFILES_DIR" ]]; then
mkdir -p "${DOTFILES_DIR}" && \
git clone --recursive ${DOTFILES_REPO} ${DOTFILES_DIR}
fi