Skip to content

Commit

Permalink
Fix bug in update
Browse files Browse the repository at this point in the history
  • Loading branch information
faridnsh committed Jul 18, 2012
1 parent a9d0dd7 commit 82734f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dotfiles
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ then
# copy everything to the dotfiles from the repo
for i in "${files[@]}"
do
cp -r $repo/$i ~/.$i
if [ -d ~/.$i ]; then
cp -r $repo/$i/* ~/.$i
else
cp -r $repo/$i ~/.$i
fi
done

echo "Everything got updated"
Expand Down

0 comments on commit 82734f0

Please sign in to comment.