summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-02-04 13:10:27 -0800
committerPreston Pan <preston@nullring.xyz>2023-02-04 13:10:27 -0800
commit0952e317492a32cab3a1c37c6657b090468cb19b (patch)
treebe6874c33d16c58daacd30f2a657aa5ebf2da0aa
parentb97c7811c7fd1131ae931d65460fbe1a0986e726 (diff)
hello?
-rwxr-xr-xfinalize_build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/finalize_build.sh b/finalize_build.sh
index b48c6ca..474be13 100755
--- a/finalize_build.sh
+++ b/finalize_build.sh
@@ -5,10 +5,10 @@ ROOT_DIR="./build/website/"
for i in $(find "$ROOT_DIR" -type f -name '*.html'); do
if [ "$(basename "$i")" = 'index.html' ];
then
- sed -i -e 's|<!--BACKDIR-->|\| <a href="\.\./index\.html">Back</a>|g' "$i"
+ gsed -i -e 's|<!--BACKDIR-->|\| <a href="\.\./index\.html">Back</a>|g' "$i"
else
- sed -i -e 's|<!--BACKDIR-->|\| <a href="\./index\.html">Back</a>|g' "$i"
+ gsed -i -e 's|<!--BACKDIR-->|\| <a href="\./index\.html">Back</a>|g' "$i"
fi
done;
-sed -i -e 's|\| <a href="\.\./index\.html">Back</a>||g' "$ROOT_DIR/index.html"
+gsed -i -e 's|\| <a href="\.\./index\.html">Back</a>||g' "$ROOT_DIR/index.html"