38 lines
1.0 KiB
Bash
Executable File
38 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Script to run to fix issue #1 until there is a real fix.
|
|
# https://spacecruft.org/deepcrayon/parrot-www/issues/1
|
|
|
|
# local jquery.js
|
|
wget --no-clobber --quiet \
|
|
-O public/js/jquery-3.6.3.min.js \
|
|
https://code.jquery.com/jquery-3.6.3.min.js
|
|
|
|
FIXFILES=`grep -lRI "https://code.jquery.com/jquery-3.6.3.min.js" public/`
|
|
|
|
if [[ ${FIXFILES} ]]
|
|
then \
|
|
sed -i -e 's/https:\/\/code.jquery.com\/jquery-3.6.3.min.js/\/js\/jquery-3.6.3.min.js/g' ${FIXFILES}
|
|
fi
|
|
|
|
grep -lRI "https://code.jquery.com/" public/
|
|
|
|
mkdir -p assets/fonts
|
|
|
|
wget --no-clobber --quiet \
|
|
-O assets/webfonts/OpenSans.css \
|
|
"https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i&display=swap"
|
|
|
|
# sed
|
|
# https://parrot.codes/webfonts/OpenSans.css
|
|
|
|
|
|
wget --no-clobber --quiet \
|
|
-O assets/webfonts/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2 \
|
|
"https://fonts.gstatic.com/s/opensans/v36/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2"
|
|
|
|
# sed ?
|
|
# https://parrot.codes/webfonts/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2
|
|
|
|
exit 0
|