From 3699e0199b2af50db24ae2ea644bf9ae86b2facc Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 8 Nov 2016 22:02:20 -0500 Subject: [PATCH] mktemp fix to run on OS X 10.10 --- src/gam-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gam-install.sh b/src/gam-install.sh index 39d392d9..286dc5f0 100755 --- a/src/gam-install.sh +++ b/src/gam-install.sh @@ -134,8 +134,8 @@ for asset in release['assets']: browser_download_url=$(echo "$release_json" | python -c "$pycode" browser_download_url $gamversion) name=$(echo "$release_json" | python -c "$pycode" name $gamversion) # Temp dir for archive -temp_archive_dir=$(mktemp -d) - +#temp_archive_dir=$(mktemp -d) +temp_archive_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir') echo_yellow "Downloading file $name from $browser_download_url to $temp_archive_dir." # Save archive to temp w/o losing our path (cd $temp_archive_dir && curl -O -L $browser_download_url)