sorter.sh: pause when invalid keys are pressed
This commit is contained in:
parent
7c124bdc48
commit
ef020f2181
@ -54,6 +54,7 @@ while read -r FILE; do
|
|||||||
PREVDIR=""
|
PREVDIR=""
|
||||||
PREVNAME=""
|
PREVNAME=""
|
||||||
while true; do
|
while true; do
|
||||||
|
clear
|
||||||
printf "\n\n%s\n" "$FILE"
|
printf "\n\n%s\n" "$FILE"
|
||||||
DESTPATH="$DIR"/"$NAME"."$EXT"
|
DESTPATH="$DIR"/"$NAME"."$EXT"
|
||||||
printf "send to: %s\n" "$DESTPATH"
|
printf "send to: %s\n" "$DESTPATH"
|
||||||
@ -73,6 +74,10 @@ while read -r FILE; do
|
|||||||
fi;;
|
fi;;
|
||||||
s ) break;;
|
s ) break;;
|
||||||
d ) mv "$FILE" ~/quar/trash/; break;;
|
d ) mv "$FILE" ~/quar/trash/; break;;
|
||||||
|
* )
|
||||||
|
printf "\nInvalid input! Press enter to continue\n";
|
||||||
|
read </dev/tty;
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user