Permalink
Browse files

Fix bug in update

  • Loading branch information...
1 parent a9d0dd7 commit 82734f03b6ccac9f6a5a66510d04a95f3484ffa8 @alFReD-NSH committed Jul 18, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 dotfiles
View
@@ -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"

0 comments on commit 82734f0

Please sign in to comment.