Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiyo510 committed Mar 31, 2024
1 parent 99ef8f6 commit a4b9bf0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

set -exu

THIS_DIR=$HOME/dotfiles
ZSH_DIR=$THIS_DIR/zsh
VIM_DIR=$THIS_DIR/vim
PHPSTORM_DIR=$THIS_DIR/phpstorm
ALACRITTY_DIR=$THIS_DIR/alacritty/config
TMUX_DIR=$THIS_DIR/tmux
PROJECT_ROOT=$HOME/dotfiles
ZSH_DIR=$PROJECT_ROOT/zsh
VIM_DIR=$PROJECT_ROOT/vim
PHPSTORM_DIR=$PROJECT_ROOT/phpstorm
TMUX_DIR=$PROJECT_ROOT/tmux

echo "deploy starting..."

Expand All @@ -30,7 +29,7 @@ link_directory() {
}

link_dotfiles() {
cd $1
cd "$1"

for f in .??*; do
[[ "$f" == ".git" ]] && continue
Expand All @@ -42,7 +41,7 @@ link_dotfiles() {
done
}

link_dotfiles "$THIS_DIR"
link_dotfiles "$PROJECT_ROOT"
link_dotfiles "$ZSH_DIR"
link_dotfiles "$VIM_DIR"
link_dotfiles "$PHPSTORM_DIR"
Expand Down

0 comments on commit a4b9bf0

Please sign in to comment.