Make a temporary directory in a script that works on MacOS X and Linux


mytmpdir=`mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir'`

source

Tags:  bash

Share: