Exit draw if dir not provided

This commit is contained in:
Matt McWilliams 2021-09-08 20:53:03 -04:00
parent 4a0f65876b
commit a436c97fe6
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
#!/bin/bash #!/bin/bash
#field guide if [[ "${1}" == "" ]]; then
echo "Please provide a directory as the first argument"
exit 1
fi
if [ "${2}" == "" ]; then if [ "${2}" == "" ]; then
name=`basename "${1}"` name=`basename "${1}"`