From b2677a183edf559f96f2c688aa87a90da78e8b12 Mon Sep 17 00:00:00 2001 From: malc Date: Sat, 12 Jun 2021 13:21:37 +0300 Subject: [PATCH] Quote fontface and printf arguments Paths[1] with spaces in them do not work otherwise. [1] $fontpath is controlled by the user --- misc/llppepub | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/llppepub b/misc/llppepub index 50aeb6f..15bf8fa 100755 --- a/misc/llppepub +++ b/misc/llppepub @@ -3,10 +3,10 @@ set -eu : ${fontpath="$HOME/.fonts/fantasque/fantasquesansmono-regular-3ze.otf"} -fontface() { printf '@font-face { font-family: %s; src: "%s"; } ' $1 $2; } +fontface() { printf '@font-face { font-family: %s; src: "%s"; } ' $1 "$2"; } all() { - fontface serif $fontpath - fontface sans-serif $fontpath - fontface monospace $fontpath + fontface serif "$fontpath" + fontface sans-serif "$fontpath" + fontface monospace "$fontpath" } llpp -css <(all) "$@" -- 2.11.4.GIT