From ae0ff233047748448e736e82fe4295834ff94ce2 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Thu, 23 Feb 2023 14:39:57 -0500 Subject: [PATCH] Gotta get the tests closer to reality. --- drone-plugins/sanitize-links/san.sh | 2 +- .../sanitize-links/test/{demo.md => demo-post/index.md} | 0 drone-plugins/sanitize-links/test/demo.md.orig | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) rename drone-plugins/sanitize-links/test/{demo.md => demo-post/index.md} (100%) delete mode 100644 drone-plugins/sanitize-links/test/demo.md.orig 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]]