mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
Previously, the input condition for whether the input is a valid digit was commented out. Now it's fixed, just had to remove quotations from regex.
This commit is contained in:
parent
eb388a398d
commit
8af73a9937
@ -96,10 +96,9 @@ cmd compressvideo ${{
|
||||
read compressionRate;
|
||||
|
||||
#If not a number (e.g. empty), give default 31 value
|
||||
#if ! [[ $cr =~ "^[0-5][0-9]$" ]]; then
|
||||
#echo "IS NOT A NUMBER" && sleep 1;
|
||||
#compressionRate="31";
|
||||
#fi
|
||||
if ! [[ $compressionRate =~ ^[0-5][0-9]$ ]]; then
|
||||
compressionRate="31";
|
||||
fi
|
||||
|
||||
for pickedFilepath in $fx; do
|
||||
#could instead use ffprobe but would get more complicated as the filetype suffix becomes unknown
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user