From 0b2230b46887205f5936909d35e82e78713bd1d0 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Fri, 18 Mar 2022 18:52:34 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Updates=20install=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index c5c8150..b5e6c91 100644 --- a/install.sh +++ b/install.sh @@ -11,7 +11,8 @@ REPO_PATH="https://github.com/${REPO_NAME}.git" CONFIG=".install.conf.yaml" DOTBOT_DIR="dotbot" DOTBOT_BIN="bin/dotbot" -DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +DOTFILES_DIR="/home/$USER/Documents/config/dotfiles" TITLE='🧰 Lissy93/Dotfiles Setup' # Color Variables @@ -69,9 +70,9 @@ system_verify () { make_banner "${TITLE}" "${CYAN_B}" 1 # Verify required packages are installed +system_verify "git" true system_verify "zsh" false system_verify "vim" false -system_verify "git" true system_verify "tmux" false # If on Mac, offer to install Brew @@ -84,7 +85,7 @@ if [ "$system_type" = "Darwin" ] && ! command_exists brew; then fi fi -# Download / update dotfiles repo with Chezmoi +# Download / update dotfiles repo with git if [[ ! -d "$DOTFILES_DIR" ]] then echo "Dotfiles not yet present. Will download ${REPO_NAME} into ${DOTFILES_DIR}" @@ -110,7 +111,7 @@ then brew bundle --global fi -# Set up symlinks with dotbo +# Set up symlinks with dotbot cd "${DOTFILES_DIR}" git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive git submodule update --init --recursive "${DOTBOT_DIR}"