view scripts/createdirectory.sh @ 994:8118c6b77d7c

update for objects that do not co-exist (work by https://bitbucket.org/Wendlasida/)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sun, 20 May 2018 10:56:24 -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