From: Hugo Villeneuve Date: Thu, 5 Oct 2023 22:22:50 +0000 (-0400) Subject: Temp: fix bug with canvas frame get_size X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=1e14661c07e4c758f5cee9cb54d7d59ee63b9dfa;p=fgen.git Temp: fix bug with canvas frame get_size --- diff --git a/fgen.sh b/fgen.sh index 4fe0634..a0c3800 100755 --- a/fgen.sh +++ b/fgen.sh @@ -36,7 +36,7 @@ function log_dbg() { # Arg1: layer function get_size() { - cat ${layers} | grep "${1}" | ${SED} "s/.*geometry:\([0-9]\+x[0-9]\+\).*/\1/g" + cat ${layers} | grep -m 1 "${1}" | ${SED} "s/.*geometry:\([0-9]\+x[0-9]\+\).*/\1/g" } # Arg1: layer