Skip to content

Commit

Permalink
Determine DOTFILES_ROOT correctly
Browse files Browse the repository at this point in the history
and cd into it. This fixes git setup.
  • Loading branch information
kirelagin committed May 12, 2014
1 parent 339e501 commit a00775b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#
# bootstrap installs things.

DOTFILES_ROOT="`pwd`"
cd "$(dirname "$0")/.."
DOTFILES_ROOT=$(pwd)

set -e

Expand Down Expand Up @@ -60,7 +61,7 @@ install_dotfiles () {
backup_all=false
skip_all=false

for source in `find $DOTFILES_ROOT -maxdepth 2 -name \*.symlink`
for source in `find . -maxdepth 2 -name \*.symlink`
do
dest="$HOME/.`basename \"${source%.*}\"`"

Expand Down

0 comments on commit a00775b

Please sign in to comment.