From ef020f2181451439d5397d459e075a82407903fe Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 11 Mar 2023 18:09:43 -0500 Subject: [PATCH] sorter.sh: pause when invalid keys are pressed --- src/.local/bin/sorter.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/.local/bin/sorter.sh b/src/.local/bin/sorter.sh index 58b0b29..37db82a 100755 --- a/src/.local/bin/sorter.sh +++ b/src/.local/bin/sorter.sh @@ -54,6 +54,7 @@ while read -r FILE; do PREVDIR="" PREVNAME="" while true; do + clear printf "\n\n%s\n" "$FILE" DESTPATH="$DIR"/"$NAME"."$EXT" printf "send to: %s\n" "$DESTPATH" @@ -73,6 +74,10 @@ while read -r FILE; do fi;; s ) break;; d ) mv "$FILE" ~/quar/trash/; break;; + * ) + printf "\nInvalid input! Press enter to continue\n"; + read