From b017093bc51adc8e0aa8fc05e9dde688d28d600e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C5=A1nar?= Date: Mon, 13 Jan 2025 14:07:34 +0100 Subject: [PATCH] fix error with space in name --- tools/process.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/process.bash b/tools/process.bash index 4193331..8cdf961 100755 --- a/tools/process.bash +++ b/tools/process.bash @@ -4,6 +4,6 @@ cat students.json | jq -c '.Zaci[]| select(.AktivniEvidence == true) |{id: .PkZ name=$(echo $line | jq -r '.name') surname=$(echo $line | jq -r '.surname') echo "Processing $name $surname " - qrencode -o "qrcodes/$id.png" $line + qrencode -o "qrcodes/$id.png" "$line" convert -size 1000x640 xc:white templates/background.png -geometry 500x460+0+200 -composite templates/logo.png -geometry 420x100+40+40 -composite -background transparent -fill black -size 420x240 -font templates/Quicksand-VariableFont_wght.ttf caption:"$name\n$surname" -geometry +40+220 -composite qrcodes/$id.png -geometry 420x420+540+140 -composite "cards/$name-$surname.png" done