From beefda31077f0d6a9cdd0dcad26d32dd3ef5bf2b Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Mon, 4 May 2020 08:40:10 +0200 Subject: [PATCH] fix cards css generator --- bin/spriter.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/spriter.sh b/bin/spriter.sh index 4698d63..f8df9dd 100755 --- a/bin/spriter.sh +++ b/bin/spriter.sh @@ -47,9 +47,10 @@ for direction in "" "_ea" "_we"; do if [ "$card_id" = "40" ]; then card_id="cover" fi + card_url=$(echo "$fou" | sed 's@.*/\([^/]\+/[^/]\+$\)@\1@g') cat <> $cssname img[data-card-id="${card_id}${direction}"] { - background: url('img/cards_xx${direction}.png') -${x}px -${y}px; + background: url('${card_url}${direction}.png') -${x}px -${y}px; } EOF -- 2.17.1