Просмотр исходного кода

Update setup.sh to run from anywhere

Git submodule cloning was the last action that needed the script to be
run from within the dotfiles folder. Now, that part runs in its own
subshell that changes to the dotfiles folder context, allowing setup.sh
to be run from anywhere e.g. `~/dotfiles/setup.sh` instead of only
`./setup.sh`
Weiyi Lou 10 лет назад
Родитель
Сommit
11a6906597
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      setup.sh

+ 1 - 2
setup.sh

@@ -51,8 +51,7 @@ git config --global diff.mnemonicPrefix true
 echo "Git config done."
 echo "Git config done."
 
 
 # Initialise and clone any submodules
 # Initialise and clone any submodules
-git submodule sync
-git submodule update --init
+(cd ~/dotfiles && git submodule sync && git submodule update --init)
 echo "Submodules done."
 echo "Submodules done."
 
 
 # Zsh
 # Zsh