Skip to content

Commit

Permalink
Fixed bug where restore would not work with files in subdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
kobus-v-schoor committed Mar 29, 2016
1 parent 23a430c commit 947aacb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotgit
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function restore
if [ -z "$1" ]; then
for i in $(grep -v "//" "$REPO/filelist" | grep -v "\:"); do
if [ "$(dirname "$i")" != "." ]; then
mkdir -p "$(dirname "$i")"
mkdir -p "$(dirname "$HOME/$i")"
fi

lnconf "$REPO/dotfiles/common/$i" "$HOME/$i" "$i"
Expand All @@ -194,7 +194,7 @@ function restore
filename=$(echo $i | sed s/\:.*//);

if [ "$(dirname "$filename")" != "." ]; then
mkdir -p "$(dirname "$filename")"
mkdir -p "$(dirname "$HOME/$filename")"
fi

lnconf "$REPO/dotfiles/${ownrs[0]}/$filename" "$HOME/$filename" "$filename"
Expand Down

0 comments on commit 947aacb

Please sign in to comment.