From a436c97fe67d4d6dc29bba66473d9a91eac3dd7e Mon Sep 17 00:00:00 2001 From: mmattmcw Date: Wed, 8 Sep 2021 20:53:03 -0400 Subject: [PATCH] Exit draw if dir not provided --- draw.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/draw.sh b/draw.sh index 7908c48..2a53ab9 100644 --- a/draw.sh +++ b/draw.sh @@ -1,6 +1,9 @@ #!/bin/bash -#field guide +if [[ "${1}" == "" ]]; then + echo "Please provide a directory as the first argument" + exit 1 +fi if [ "${2}" == "" ]; then name=`basename "${1}"`