Mercurial Hosting > traffic-intelligence
view scripts/createdirectory.sh @ 1128:e5c43496d9d8 Etienne-Beauchamp/added-d-optional-argument-1581358671588
added -d optional argument
author | Etienne Beauchamp <etienne-2.beauchamp@polymtl.ca> |
---|---|
date | Mon, 10 Feb 2020 18:18:10 +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