File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- VERSION=" v3.3.1 "
3+ VERSION=" v3.4.0 "
44
55# Set Defaults
66WGET_INSTALLED=0
@@ -494,6 +494,13 @@ elif [ -z "$USER_SAVE_LOCATION" ] && [ "$RUN_NONINTERACTIVE" -eq 1 ]; then
494494 # Running non-interactive, so set to default
495495 USER_SAVE_LOCATION=" $DEFAULT_SAVE_LOCATION "
496496fi
497+
498+ # If user cleared out the default save location and continued, revert to back to default
499+ if [ -z " $USER_SAVE_LOCATION " ]; then
500+ USER_SAVE_LOCATION=" $DEFAULT_SAVE_LOCATION "
501+ echo " ${COLOR_YELLOW} NOTE: Saving to default location '$USER_SAVE_LOCATION '${COLOR_RESET} "
502+ fi
503+
497504# Create directory if it does not exist
498505mkdir -p $USER_SAVE_LOCATION
499506
@@ -510,6 +517,12 @@ elif [ -z "$USER_FILENAME" ] && [ "$RUN_NONINTERACTIVE" -eq 1 ]; then
510517 USER_FILENAME=" $GENERATED_FILENAME "
511518fi
512519
520+ # If user cleared out the default filename and continued, revert to back to default
521+ if [ -z " $USER_FILENAME " ]; then
522+ USER_FILENAME=" $GENERATED_FILENAME "
523+ echo " ${COLOR_YELLOW} NOTE: Saving as '$USER_FILENAME '${COLOR_RESET} "
524+ fi
525+
513526# USER_EXCLUDED_EXTENTIONS
514527if [ -z " $USER_EXCLUDED_EXTENTIONS " ] && [ " $RUN_NONINTERACTIVE " -eq 0 ]; then
515528 # Prompt user for excluded file extensions
You can’t perform that action at this time.
0 commit comments