comparison scripts/createdirectory.sh @ 88:626560624d55

added the simple script to create directories
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 06 Jun 2011 18:06:01 -0400
parents
children
comparison
equal deleted inserted replaced
87:f234154207d4 88:626560624d55
1 #!/bin/bash
2 DIRECTORY=$1
3 if [[ ! -d "${DIRECTORY}" && ! -L "${DIRECTORY}" ]] ; then
4 echo "creating directory ${DIRECTORY}"
5 mkdir "${DIRECTORY}"
6 fi
7 #if [[ -d "${DIRECTORY}" && ! -L "${DIRECTORY}" ]] ; then