mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
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:
parent
8af73a9937
commit
b2de469c0e
@ -93,7 +93,7 @@ cmd compressvideo ${{
|
|||||||
converted_files_count=0; #notify-send variable
|
converted_files_count=0; #notify-send variable
|
||||||
|
|
||||||
echo "Compression Rate? (default: 31, maximum: 50)";
|
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 not a number (e.g. empty), give default 31 value
|
||||||
if ! [[ $compressionRate =~ ^[0-5][0-9]$ ]]; then
|
if ! [[ $compressionRate =~ ^[0-5][0-9]$ ]]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user