Description
if [ -z "${working_dir}" ]; then echo "[DEBUG] defaulting to creating a directory in /tmp" working_dir=/tmp while [[ -e ${working_dir} ]]; do working_dir=/tmp/hbase-generate-website-${RANDOM}.${RANDOM} done mkdir "${working_dir}" else
This should likely use $TMPDIR or mktemp -d