diff --git a/drone-plugins/sanitize-links/san.sh b/drone-plugins/sanitize-links/san.sh index e0bebd5..acdc09a 100755 --- a/drone-plugins/sanitize-links/san.sh +++ b/drone-plugins/sanitize-links/san.sh @@ -5,5 +5,5 @@ for n in $notes; do echo "Sanitizing: $n" fn=$(cut -d'.' -f1 $n) echo $fn - sed -i "#Resources\/attachments#notes\/$fn#" $n + sed -i "#Resources/attachments#notes/$fn#g" $n done diff --git a/drone-plugins/sanitize-links/test/demo.md b/drone-plugins/sanitize-links/test/demo-post/index.md similarity index 100% rename from drone-plugins/sanitize-links/test/demo.md rename to drone-plugins/sanitize-links/test/demo-post/index.md diff --git a/drone-plugins/sanitize-links/test/demo.md.orig b/drone-plugins/sanitize-links/test/demo.md.orig deleted file mode 100644 index fbbf30e..0000000 --- a/drone-plugins/sanitize-links/test/demo.md.orig +++ /dev/null @@ -1 +0,0 @@ -![[Resources/attachments/fuck.png]]