#!/usr/bin/env bash

cd "$(dirname "${BASH_SOURCE}")";

git pull origin master;

function syncIt() {
  list=`find dotfiles -maxdepth 1 -mindepth 1`;

  for f in $list
  do
    cp -r $f ~/.$(basename $f);
  done
}

function sourceIt() {
  source ~/.bash_profile;
}

syncIt;
sourceIt;

unset syncIt;
unset sourceIt;

#!/usr/bin/env bash

cd "$(dirname "${BASH_SOURCE}")";

git pull origin master;

function syncIt() {
  dirs=`find dotfiles -maxdepth 1 -mindepth 1 -type d`;

  for d in $dirs
  do
    cp -r $d/. ~/.$(basename $d)
  done

  files=`find dotfiles -maxdepth 1 -mindepth 1 -type f`;
  for f in $files
  do
    cp -r $f ~/.$(basename $f);
  done
}

function sourceIt() {
  source ~/.bash_profile;
}

syncIt;
sourceIt;

unset syncIt;
unset sourceIt;

Fix bug in folder installation
Fix bug in folder installation

Folder, say "/vim/", would be moved to "~/.vim/vim", not just "~/.vim/
as expected.
