From 8a5a4aafbdfe787d02de0df251316f2b0f9c94fb Mon Sep 17 00:00:00 2001 From: Drulikar Date: Sun, 12 Jan 2025 00:59:44 -0600 Subject: [PATCH] Fix final sed for resizing too --- tools/github-actions/nanomap-renderer-invoker.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/github-actions/nanomap-renderer-invoker.sh b/tools/github-actions/nanomap-renderer-invoker.sh index bcba66ef8f..9654ad360a 100755 --- a/tools/github-actions/nanomap-renderer-invoker.sh +++ b/tools/github-actions/nanomap-renderer-invoker.sh @@ -98,9 +98,9 @@ fi echo "Starting image resizing..." cd data/minimaps -#Resize images to proper size and move them to the correct place +#Resize images to proper size and copy them to the correct place for map in ./*.png; do - j=$(echo $map | sed -n "s/^\.\/\(.*\)-\([0-9]*\)\-1.png$/\1_nanomap_z\2.png/p") - echo "Resizing $map and moving to icons/_nanomaps/$j" + j=$(echo $map | sed -nE "s/^\.\/([^-]*)(-[^1-9]*)?([1-9][0-9]*)(.*)-1\.png$/\1_nanomap_z\3.png/p") + echo "Resizing $map and copying to icons/_nanomaps/$j" convert $map -resize 2240x2240 "$BASEDIR/icons/_nanomaps/$j" done