Created
December 3, 2018 06:38
-
-
Save kitz99/63c9898ddebccfa304092329fb4b6cba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dirName="$1" | |
permissions=${2:-0755} | |
[ $# -eq 0 ] && { echo "Could not create a directory without a name"; exit 1; } | |
[ ! -d "$dirName" ] && mkdir -m $permissions -p "$dirName" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment