Mercurial Hosting > traffic-intelligence
view scripts/createdirectory.sh @ 516:bce1fe45d1b2
corrected bugs detected by tests (because of moving functions around modules
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 06 Jun 2014 14:14:01 -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