From ccb9af1da9f795ec8af7915855d92854e7bca926 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 15 Feb 2019 02:44:04 +0100 Subject: [PATCH] Changed theme changing script. --- themes/modify_slick.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/themes/modify_slick.sh b/themes/modify_slick.sh index d83cd02..d7425c2 100755 --- a/themes/modify_slick.sh +++ b/themes/modify_slick.sh @@ -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