view scripts/createdirectory.sh @ 740:867bab9f317a dev

function to check the existence of tables
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 27 Aug 2015 23:51:18 -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