view scripts/createdirectory.sh @ 773:bf4a1790cfac dev

minor bug and improvements
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 01 Feb 2016 16:10:26 -0500
parents 626560624d55
children
line wrap: on
line source

#!/bin/bash
DIRECTORY=$1
if [[ ! -d "${DIRECTORY}" && ! -L "${DIRECTORY}" ]] ; then
    echo "creating directory ${DIRECTORY}"
    mkdir "${DIRECTORY}"
fi
#if [[ -d "${DIRECTORY}" && ! -L "${DIRECTORY}" ]] ; then