summaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/InstallAppFromCompressedFileFromURL.sh
diff options
context:
space:
mode:
Diffstat (limited to 'coin/provisioning/common/InstallAppFromCompressedFileFromURL.sh')
-rw-r--r--coin/provisioning/common/InstallAppFromCompressedFileFromURL.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/coin/provisioning/common/InstallAppFromCompressedFileFromURL.sh b/coin/provisioning/common/InstallAppFromCompressedFileFromURL.sh
index b6072062..bee16dd2 100644
--- a/coin/provisioning/common/InstallAppFromCompressedFileFromURL.sh
+++ b/coin/provisioning/common/InstallAppFromCompressedFileFromURL.sh
@@ -74,7 +74,12 @@ function InstallAppFromCompressedFileFromURL {
echo "Extension for file: $extension"
echo "Creating temporary file and directory"
targetFile=$(mktemp "$TMPDIR$(uuidgen).$extension") || throw $ExceptionCreateTmpFile
- targetDirectory=$(mktemp -d) || throw $ExceptionCreateTmpDirectory
+ # macOS 10.10 mktemp does require prefix
+ if [[ $OSTYPE == "darwin14" ]]; then
+ targetDirectory=$(mktemp -d -t '10.10') || throw $ExceptionCreateTmpDirectory
+ else
+ targetDirectory=$(mktemp -d) || throw $ExceptionCreateTmpDirectory
+ fi
DownloadURL "$url" "$url_alt" "$expectedSha1" "$targetFile"
echo "Uncompress $targetFile"
case $extension in