Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

docs: install.sh add macOS fallback for mktemp - fixes #2173

Nick Craig-Wood7e80e609e880
diff --git a/docs/content/install.sh b/docs/content/install.sh
index e4488354f..48688bca7 100755
--- a/docs/content/install.sh
+++ b/docs/content/install.sh
@@ -24,8 +24,8 @@ if [ -n "$1" ]; then
fi
-#create tmp directory and move to it
-tmp_dir=`mktemp -d`; cd $tmp_dir
+#create tmp directory and move to it with macOS compatibility fallback
+tmp_dir=`mktemp -d 2>/dev/null || mktemp -d -t 'rclone-install'`; cd $tmp_dir
#make sure unzip tool is available and choose one to work with