del: Submodule is not safe enough.

This commit is contained in:
ys 2013-04-24 19:24:26 +08:00
commit dd40b27a41
4 changed files with 3 additions and 12 deletions

View file

@ -10,12 +10,6 @@ hash git >/dev/null && /usr/bin/env git clone https://github.com/robbyrussell/oh
exit
}
echo "\033[0;34mCloining submodule...\033[0m"
current_path=`pwd`
cd ~/.oh-my-zsh
/usr/bin/env git submodule update --init
cd "$current_path"
echo "\033[0;34mLooking for an existing zsh config...\033[0m"
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
then

View file

@ -2,7 +2,7 @@ current_path=`pwd`
printf '\033[0;34m%s\033[0m\n' "Upgrading Oh My Zsh"
cd "$ZSH"
if git pull origin master && git submodule foreach git pull
if git pull origin master
then
printf '\033[0;32m%s\033[0m\n' ' __ __ '
printf '\033[0;32m%s\033[0m\n' ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '