1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-23 20:52:28 +00:00

Init submodules when using make.sh

This commit is contained in:
J. Fernando Sánchez 2015-04-08 01:39:23 +02:00
parent 520ff98ef2
commit 5196e3c779

12
make.sh
View File

@ -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