提交 fbab72fe 编写于 作者: J Jared Parsons

Merge pull request #4237 from jaredpar/mac

Add --nocache option
......@@ -13,6 +13,7 @@ usage()
XUNIT_VERSION=2.1.0-beta3-build3029
BUILD_CONFIGURATION=Debug
OS_NAME=$(uname -s)
USE_CACHE=true
while [[ $# > 0 ]]
do
......@@ -38,6 +39,10 @@ do
BUILD_CONFIGURATION=Release
shift 1
;;
--nocache)
USE_CACHE=false
shift 1
;;
*)
usage
exit 1
......@@ -128,13 +133,16 @@ install_mono_toolset()
TARGET=/tmp/$1
echo "Installing Mono toolset $1"
if [ -d $TARGET ]; then
echo "Already installed"
return
if [ "$USE_CACHE" = "true" ]; then
echo "Already installed"
return
fi
fi
pushd /tmp
rm $TARGET 2>/dev/null
rm -r $TARGET 2>/dev/null
rm $1.tar.bz2 2>/dev/null
curl -O https://dotnetci.blob.core.windows.net/roslyn/$1.tar.bz2
tar -jxf $1.tar.bz2
if [ $? -ne 0 ]; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册