mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01: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;
|
read compressionRate;
|
||||||
|
|
||||||
#If not a number (e.g. empty), give default 31 value
|
#If not a number (e.g. empty), give default 31 value
|
||||||
#if ! [[ $cr =~ "^[0-5][0-9]$" ]]; then
|
if ! [[ $compressionRate =~ ^[0-5][0-9]$ ]]; then
|
||||||
#echo "IS NOT A NUMBER" && sleep 1;
|
compressionRate="31";
|
||||||
#compressionRate="31";
|
fi
|
||||||
#fi
|
|
||||||
|
|
||||||
for pickedFilepath in $fx; do
|
for pickedFilepath in $fx; do
|
||||||
#could instead use ffprobe but would get more complicated as the filetype suffix becomes unknown
|
#could instead use ffprobe but would get more complicated as the filetype suffix becomes unknown
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user