fix space in name

This commit is contained in:
Philipp Kramer 2025-06-18 14:55:45 +02:00
parent 6cec9fb5f0
commit 6a1fdad6cf

View file

@ -12,11 +12,10 @@ spin[1]="\\"
spin[2]="|"
spin[3]="/"
sed "s/123456789/"$1"/g" flaschenring_template.svg > flaschenring_$1_temp.svg
sed "s/123456789/$1/g" flaschenring_template.svg > "flaschenring_$1_temp.svg"
sleep 0.1
echo -n "[inserting] ${spin[0]}"
until [ -f flaschenring_$1_temp.svg ]
until [ -f "flaschenring_$1_temp.svg" ]
do
for i in "${spin[@]}"
do
@ -26,11 +25,11 @@ do
done
echo -ne "\bok"
inkscape --export-text-to-path -o flaschenring_$1_temp2.svg flaschenring_$1_temp.svg
inkscape --export-text-to-path -o "flaschenring_$1_temp2.svg" "flaschenring_$1_temp.svg"
sleep 0.1
echo ""
echo -n "[pathifying] ${spin[0]}"
until [ -f flaschenring_$1_temp2.svg ]
until [ -f "flaschenring_$1_temp2.svg" ]
do
for i in "${spin[@]}"
do
@ -41,11 +40,11 @@ done
echo -ne "\bok"
inkscape --batch-process --actions="select-by-id:textbasepath;delete" -o flaschenring_$1.svg --with-gui flaschenring_$1_temp2.svg
inkscape --batch-process --actions="select-by-id:textbasepath;delete" -o "flaschenring_$1.svg" --with-gui "flaschenring_$1_temp2.svg"
sleep 0.1
echo ""
echo -n "[cleaning up] ${spin[0]}"
until [ -f flaschenring_$1.svg ]
until [ -f "flaschenring_$1.svg" ]
do
for i in "${spin[@]}"
do
@ -57,5 +56,5 @@ echo -ne "\bok"
rm flaschenring_$1_temp.svg
rm flaschenring_$1_temp2.svg
rm "flaschenring_$1_temp.svg"
rm "flaschenring_$1_temp2.svg"