diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-02-26 09:17:39 +0000 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-02-26 09:17:39 +0000 |
commit | b4172d3b3602be8def9e06e4d37428ec8d8a9bb6 (patch) | |
tree | 6a1d4f29e7a39f2cc470e40b9bb01030eef23bdd /etc | |
parent | 80ed456ae3da99c0fffeccae8dbfeb18539a2fcc (diff) |
Multi Depends no need. mkdir before output
Pacman hook multiple Depends is OR logic, can be tested via a test.hook
Diffstat (limited to 'etc')
-rw-r--r-- | etc/pacman.d/hooks/highlight-css.hook | 3 |
1 files changed, 1 insertions, 2 deletions
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 |