提交 eeadc3fa 编写于 作者: B Bill Hamilton

Darwin: added additional error checking to homebrew update install

上级 c30dfb60
......@@ -139,9 +139,24 @@
$XCODESELECT --install 2>/dev/null;
printf "\tUpdating Home Brew.\n"
brew update
if [ $? -ne 0 ]; then
printf "\tUnable to update Home Brew at this time.\n"
printf "\tExiting now.\n\n"
exit;
fi
printf "\tInstalling Dependencies.\n"
brew install --force $DEP
if [ $? -ne 0 ]; then
printf "\tHomebrew exited with the above errors.\n"
printf "\tExiting now.\n\n"
exit;
fi
brew unlink $DEP && brew link --force $DEP
if [ $? -ne 0 ]; then
printf "\tHomebrew exited with the above errors.\n"
printf "\tExiting now.\n\n"
exit;
fi
break;;
[Nn]* ) echo "User aborting installation of required dependencies, Exiting now."; exit;;
* ) echo "Please type 1 for yes or 2 for no.";;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册