Commit b0f83c10 authored by deing's avatar deing

Update content commit

parent d658755c
......@@ -11,8 +11,8 @@ elif [[ "$1" == "--publish" ]]; then
echo [build.sh] Publishing content from GitLab…
rm src/md -rf
git clone https://gitlab.com/unofficial-tildes-wiki/content.wiki.git src/md
cd src/md
git checkout -q 3c32dd97
cd src/md
git checkout -q 2a3d3182
cd ../..
rm src/md/.git -rf
else
......@@ -52,7 +52,7 @@ cp src/favicon/* public/ || echo "[build.sh] Failure."
echo [build.sh] Generating redirects…
<src/redirect/redirect.txt xargs -I % cp src/redirect/redirect.html %
#fix redirects to slugs instead of wiki index
while read r; do
sed -i "s|gitlab.io\/|gitlab.io\/${r%.html}\/|g" $r
while read r; do
sed -i "s|gitlab.io\/|gitlab.io\/${r%.html}\/|g" $r
sed -i "s|gitlab.io\/public\/|gitlab.io\/|g" $r
done <src/redirect/redirect.txt
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment