askiiart-net/add-better-http-status-codes.sh

12 lines
367 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2023-11-20 10:57:02 -06:00
rm -rf error/
git clone https://git.askiiart.net/askiiart/http-status-codes.git
cd http-status-codes/
python3 nginx-create-pages.py
cp -r pages/ ..
cd ..
mv pages/ error/
cp http-status-codes/you.gif assets/
2023-11-20 10:57:02 -06:00
cp http-status-codes/boykisser.png assets/
rm -rf http-status-codes/
2023-11-20 10:57:02 -06:00
find error/ -type f | xargs sed -i 's/img src=\//img src=\/assets\//g'