From 8af73a99373105c49a0d8375558e7ff167b68b33 Mon Sep 17 00:00:00 2001 From: The Yellow Architect Date: Sun, 19 Nov 2023 15:47:49 +0200 Subject: [PATCH] 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. --- .config/lf/lfrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 104f79f9..842f870c 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -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