view scripts/createdirectory.sh @ 1139:3180a3bb63fe Etienne-Beauchamp/added-d-optional-argument-1581358671588

Close branch Etienne-Beauchamp/added-d-optional-argument-1581358671588.
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sun, 22 Mar 2020 19:11:01 +0000
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