Init submodules when using make.sh

tmux
J. Fernando Sánchez 9 years ago
parent 520ff98ef2
commit 5196e3c779

@ -9,6 +9,11 @@
# dotfiles directory
dir=`dirname $0`
# change to the dotfiles directory
echo "Changing to the $dir directory"
cd $dir
echo "...done"
########## Don't forget the submodules
git submodule init
git submodule update --recursive
@ -23,11 +28,6 @@ echo "Creating $olddir for backup: of any existing dotfiles in ~"
mkdir -p $olddir
echo "...done"
# change to the dotfiles directory
echo "Changing to the $dir directory"
cd $dir
echo "...done"
# move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
for file in $files; do
echo "Moving any existing dotfiles from ~ to $olddir"
@ -35,5 +35,3 @@ for file in $files; do
echo "Creating symlink to $file in home directory."
ln -s $dir/$file ~/.$file
done

Loading…
Cancel
Save