view scripts/createdirectory.sh @ 1136:30171d4fd3df Tertuis-Ou-draogo/movingpy-issue-22-from-etienne-beauchamp-1584900380975

moving.py [Issue #22 from Etienne Beauchamp In annotationTool Correction]
author Tertuis Ouédraogo <tertuis95@gmail.com>
date Sun, 22 Mar 2020 18:06:22 +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