From b4172d3b3602be8def9e06e4d37428ec8d8a9bb6 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Mon, 26 Feb 2024 09:17:39 +0000 Subject: Multi Depends no need. mkdir before output Pacman hook multiple Depends is OR logic, can be tested via a test.hook --- etc/pacman.d/hooks/highlight-css.hook | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/pacman.d/hooks/highlight-css.hook b/etc/pacman.d/hooks/highlight-css.hook index e3411b7b..6eca190c 100644 --- a/etc/pacman.d/hooks/highlight-css.hook +++ b/etc/pacman.d/hooks/highlight-css.hook @@ -9,6 +9,5 @@ Description = Upgrade highlight.css for cgit syntax highlighting... When = PostTransaction # mycgit.css import this highlight.css and cgit.css, for syntax-highlighting-edited.sh # because cgit.css is not pacman backup file and will be overwritten when upgrade cgit -Exec = /usr/bin/highlight -O xhtml --print-style -o /usr/share/webapps/cgit/highlight.css +Exec = /usr/bin/sh -c '/usr/bin/mkdir -p /usr/share/webapps/cgit && /usr/bin/highlight -O xhtml --print-style -o /usr/share/webapps/cgit/highlight.css' Depends = highlight -Depends = cgit -- cgit v1.2.3-70-g09d2