From bfab9b469169ef5eafc135b20f0e2c5900ea7ce8 Mon Sep 17 00:00:00 2001 From: Bryan Jenks Date: Sun, 19 Apr 2020 02:40:09 -0700 Subject: [PATCH] consolidate first case stmt, and +exit to * opt --- flash | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flash b/flash index a31d19b..9697b09 100755 --- a/flash +++ b/flash @@ -73,10 +73,9 @@ if [ ! -d $DIR ];then # If Directory does NOT exist echo "No '.local/share/flash' directory, make it? y/n" read RESPONSE case "$RESPONSE" in - [Nn]) exit ;; - [Qq]) exit ;; + [QqNn]) exit ;; [Yy]) mkdir "$DIR" && touch $EXAMPLE_DECK && echo "$DECK_TEMPLATE" >> $EXAMPLE_DECK && echo "$DIR_MADE_MSG" ;; - *) echo "invalid choice, please select either 'y' or 'n'" ;; + *) echo "invalid choice, please select either 'y' or 'n'" && exit ;; esac fi