Merge pull request #1983 from krwq/fixosx

[build fix] Use template for mktemp call for portability
This commit is contained in:
Krzysztof Wicher 2016-03-21 20:18:42 -07:00
commit 78e60bcb8b

View file

@ -419,7 +419,7 @@ extract_dotnet_package() {
local zip_path=$1
local out_path=$2
local temp_out_path=$(mktemp -d)
local temp_out_path=$(mktemp -d $temporary_file_template)
local failed=false
tar -xzf "$zip_path" -C "$temp_out_path" > /dev/null || failed=true
@ -485,7 +485,7 @@ install_dotnet() {
eval $invocation
mkdir -p $install_root
zip_path=$(mktemp)
zip_path=$(mktemp $temporary_file_template)
say_verbose "Zip path: $zip_path"
say "Downloading $download_link"
@ -500,6 +500,7 @@ install_dotnet() {
local_version_file_relative_path="/.version"
bin_folder_relative_path=""
temporary_file_template="${TMPDIR:-/tmp}/dotnet.XXXXXXXXX"
channel="preview"
version="Latest"