view scripts/createdirectory.sh @ 1105:e62c2f5e25e6

added sampling function
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 14 Mar 2019 17:08:05 -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