site

My personal website.

Date: Fri, 16 Jul 2021 14:04:21 +0200

Force creation of symlinks in generate

Diffstat:

M generate                            |       2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

@@ -221,7 +221,7 @@ while read -r link <&4; do
     [ -z "$link" ] && continue;
     path="$(readlink "$link")"
     unlink "$link"
-    ln -s "$(printf "%s" "$path" | sed "s/\.gmi$/.$extension/")" "$(printf "%s" "$link" | sed "s/\.gmi$/.$extension/")"
+    ln -sf "$(printf "%s" "$path" | sed "s/\.gmi$/.$extension/")" "$(printf "%s" "$link" | sed "s/\.gmi$/.$extension/")"
 done 4<< EOF
 $links
 EOF