From 7e80e609e880f19dd6a040bcf318bcf11086f8fa Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 23 Mar 2018 22:19:40 +0000 Subject: [PATCH] docs: install.sh add macOS fallback for mktemp - fixes #2173 --- docs/content/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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