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

This commit is contained in:
Nick Craig-Wood 2018-03-23 22:19:40 +00:00
parent 91b068ad3a
commit 7e80e609e8

View file

@ -24,8 +24,8 @@ if [ -n "$1" ]; then
fi fi
#create tmp directory and move to it #create tmp directory and move to it with macOS compatibility fallback
tmp_dir=`mktemp -d`; cd $tmp_dir 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 #make sure unzip tool is available and choose one to work with