Temp: fix bug with canvas frame get_size
authorHugo Villeneuve <hugo@hugovil.com>
Thu, 5 Oct 2023 22:22:50 +0000 (18:22 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 7 Oct 2023 15:45:53 +0000 (11:45 -0400)
fgen.sh

diff --git a/fgen.sh b/fgen.sh
index 4fe0634..a0c3800 100755 (executable)
--- 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