diff options
author | Senthil <schellap@microsoft.com> | 2016-01-08 02:31:56 +0300 |
---|---|---|
committer | Senthil <schellap@microsoft.com> | 2016-01-08 02:57:44 +0300 |
commit | 810d6074dd18ddcf8466b90900abe7b244766272 (patch) | |
tree | 96b911cc61f2adc1e550314a80eea2a016dcc6e2 /build.sh | |
parent | b8be21f4224bbf9a7ed21c00823be05a353c1267 (diff) |
Clean CLI for clean builds
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -79,7 +79,15 @@ install_dotnet_cli() echo "Installing the dotnet/cli..." local __tools_dir=${__scriptpath}/bin/tools local __cli_dir=${__tools_dir}/cli - + if [ ${__CleanBuild} == 1 ]; then + if [ -d "${__cli_dir}" ]; then + rm -rf "${__cli_dir}" + fi + if [ -d "${__cli_dir}" ]; then + echo "Exiting... could not clean ${__cli_dir}" + exit 1 + fi + fi if [ ! -d "${__cli_dir}" ]; then mkdir -p "${__cli_dir}" fi @@ -174,7 +182,7 @@ build_managed_corert() __buildproj=$__scriptpath/build.proj __buildlog=$__scriptpath/msbuild.$__BuildArch.log - if [ -n ${ToolchainMilestone:+1} ]; then + if [ -z "${ToolchainMilestone}" ]; then ToolchainMilestone=testing fi |