Skip to content

Commit d6a7645

Browse files
committed
Make sure we check more than if the sass command just exists before falling back
We should fall back if we get an error-code running the program
1 parent 705cc7d commit d6a7645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/compile-sass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# or the CSS::Sass Perl 5 module: https://metacpan.org/pod/CSS::Sass
66
#
77

8-
if command -v sass >/dev/null 2>&1; then
8+
if command -v sass >/dev/null 2>&1 && sass --version 2>&1/dev/null; then
99
sass -t compressed assets/sass/style.scss:html/css/style.css &&
1010
echo "Successfully compiled SASS using 'sass' command" ||
1111
{ echo "Failed to compile SASS with 'sass' command"; exit 1; }

0 commit comments

Comments
 (0)