diff --git a/make.sh b/make.sh index 13c9f11..6389edc 100644 --- a/make.sh +++ b/make.sh @@ -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 - -