1
0
mirror of https://github.com/rclone/rclone.git synced 2025-01-19 04:47:54 +02:00

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

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

@ -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