commit 41df4080ba5a97d277cfb966fd67e45e66e35f36
parent b5ef591d15d5396baa547170c0a41ef5b7d4f4bb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 27 Aug 2025 17:13:54 +0200
Fix of the htrdr hook that setups redirections
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/htrdr/hooks/01-setup-redirections.sh b/htrdr/hooks/01-setup-redirections.sh
@@ -63,14 +63,14 @@ printf "%s\n" "${redirections}" | \
while read -r i; do
from="$(printf '%s\n' "${i}" | cut -d' ' -f1)"
+ mkdir -p "$(dirname "${from}")"
- # Set the destination file relative to the source file directory
+ # Set the destination file relative to the source file directory
to="$(printf '%s\n' "${i}" | cut -d' ' -f2)"
to="$(relpath_to_dir "${from}" "${PWD}")${to}"
>&2 printf 'Redirecting %s to %s\n' "${from}" "${to}"
- mkdir -p "$(dirname "${from}")"
if [ "${from##*.}" = "html" ]; then
redirection "${to}" > "${from}"