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:
The Yellow Architect 2023-11-19 15:47:49 +02:00
parent eb388a398d
commit 8af73a9937

View File

@ -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