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:
parent
520ff98ef2
commit
5196e3c779
12
make.sh
12
make.sh
@ -9,6 +9,11 @@
|
|||||||
# dotfiles directory
|
# dotfiles directory
|
||||||
dir=`dirname $0`
|
dir=`dirname $0`
|
||||||
|
|
||||||
|
# change to the dotfiles directory
|
||||||
|
echo "Changing to the $dir directory"
|
||||||
|
cd $dir
|
||||||
|
echo "...done"
|
||||||
|
|
||||||
########## Don't forget the submodules
|
########## Don't forget the submodules
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update --recursive
|
git submodule update --recursive
|
||||||
@ -23,11 +28,6 @@ echo "Creating $olddir for backup: of any existing dotfiles in ~"
|
|||||||
mkdir -p $olddir
|
mkdir -p $olddir
|
||||||
echo "...done"
|
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
|
# move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
echo "Moving any existing dotfiles from ~ to $olddir"
|
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."
|
echo "Creating symlink to $file in home directory."
|
||||||
ln -s $dir/$file ~/.$file
|
ln -s $dir/$file ~/.$file
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user