Update rebuild.sh to not be position dependent

This commit is contained in:
Matthias Portzel 2023-09-16 21:33:20 -04:00
parent 38e59eb21f
commit 3e5308bf14
1 changed files with 11 additions and 6 deletions

View File

@ -2,6 +2,10 @@
# Should be run as ./rebuild.sh
(
# CD to the directory that this file is in
cd $(dirname "$0")
if ! command -v sass &> /dev/null
then
echo "sass could not be found. Please install sass"
@ -9,3 +13,4 @@ then
fi
sass -w assets/styles/main.scss assets/built/main.css
)