On the input prompt of compression ratio (0 to 51) it automatically enters on entering the 2nd character. No need to press 2 digits then press enter. Now you write 2 digits and the enter is pressed automatically.

This commit is contained in:
The Yellow Architect 2023-11-19 15:55:29 +02:00
parent 8af73a9937
commit b2de469c0e

View File

@ -93,7 +93,7 @@ cmd compressvideo ${{
converted_files_count=0; #notify-send variable
echo "Compression Rate? (default: 31, maximum: 50)";
read compressionRate;
read -N 2 compressionRate;
#If not a number (e.g. empty), give default 31 value
if ! [[ $compressionRate =~ ^[0-5][0-9]$ ]]; then