Changed theme changing script.

This commit is contained in:
tastytea 2019-02-15 02:44:04 +01:00
parent dd051a8314
commit ccb9af1da9
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,12 @@
#!/bin/sh
pushd /home/tastytea/blog/themes
if [ "$(basename ${PWD})" != "themes" ]; then
echo "cd to theme directory, please." >&2
exit 1
fi
mkdir -p tastytea/static/assets
for file in style.css style-compat.css; do
cp slick/static/assets/${file} tastytea/static/assets/${file}
@ -32,4 +38,3 @@ for file in style.css style-compat.css; do
sed -i 's/#000/#e2e0de/g' tastytea/static/assets/${file} # Some links
done
popd