From 1e14661c07e4c758f5cee9cb54d7d59ee63b9dfa Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 5 Oct 2023 18:22:50 -0400 Subject: [PATCH] Temp: fix bug with canvas frame get_size --- fgen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1