view scripts/createdirectory.sh @ 676:58b9ac2f262f

fine tuning
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 27 May 2015 04:08:19 +0200
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