sorter.sh: pause when invalid keys are pressed

This commit is contained in:
dogeystamp 2023-03-11 18:09:43 -05:00
parent 7c124bdc48
commit ef020f2181
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -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 </dev/tty;
;;
esac
done
done