Merge pull request #130 from blackpill0w/main

Change check for existence of `sassc` as it fails when `which` isn't installed even if `sassc` exists.
This commit is contained in:
Vince
2023-10-20 00:29:53 +08:00
committed by GitHub

View File

@@ -413,7 +413,7 @@ function has_command() {
# Install needed packages # Install needed packages
install_package() { install_package() {
if [ ! "$(which sassc 2> /dev/null)" ]; then if ! has_command sassc; then
echo sassc needs to be installed to generate the css. echo sassc needs to be installed to generate the css.
if has_command zypper; then if has_command zypper; then
sudo zypper in sassc sudo zypper in sassc