view scripts/createdirectory.sh @ 165:50964af05a80

solved issue with header inclusion
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 29 Sep 2011 03:12:59 -0400
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