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