From: Hugo Villeneuve Date: Thu, 5 Oct 2023 22:29:42 +0000 (-0400) Subject: Temp: fix bug with get_frame_id for frame starting with digit(s) X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=a6e6ffa207e7bd14f026ef0ea261d14473b18109;p=fgen.git Temp: fix bug with get_frame_id for frame starting with digit(s) --- diff --git a/fgen.sh b/fgen.sh index a0c3800..05cbb1d 100755 --- a/fgen.sh +++ b/fgen.sh @@ -62,7 +62,7 @@ function get_label() # Arg1: line function get_frame_id() { - frame=$(echo "${1}" | grep -e "label:[0-9]" | ${SED} "s/label:\([0-9]\+\),.*/\1/g") + frame=$(echo "${1}" | grep -e "label:[0-9]\+," | ${SED} "s/label:\([0-9]\+\),.*/\1/g") if [ x"${frame}" = x"" ]; then echo ""