Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceliuice committed Oct 10, 2023
2 parents bcd1095 + 6158ae3 commit 93142f7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -554,60 +554,60 @@ function has_command() {

install_css_deps() {
if [ ! "$(which sassc 2> /dev/null)" ]; then
echo "\n sassc needs to be installed to generate the css."
echo -e "\n sassc needs to be installed to generate the css."

if has_command zypper; then

read -p "[ trusted ] specify the root password : " -t 20 -s
[[ -n "$REPLY" ]] && {
echo "\n running: sudo zypper in sassc "
echo -e "\n running: sudo zypper in sassc "
sudo -S <<< $REPLY zypper in sassc
}|| {
echo "\n Operation canceled Bye"
echo -e "\n Operation canceled Bye"
exit 1
}

elif has_command apt; then

read -p "[ trusted ] specify the root password : " -t 20 -s
[[ -n "$REPLY" ]] && {
echo "\n running: sudo apt install sassc "
sudo -S <<< $REPLY apt install sassc
echo -e "\n running: sudo apt install --assume-yes sassc "
sudo -S <<< $REPLY apt install --assume-yes sassc
}|| {
echo "\n Operation canceled Bye"
echo -e "\n Operation canceled Bye"
exit 1
}

elif has_command dnf; then

read -p "[ trusted ] specify the root password : " -t 20 -s
[[ -n "$REPLY" ]] && {
echo "\n running: sudo dnf install sassc "
echo -e "\n running: sudo dnf install sassc "
sudo -S <<< $REPLY dnf install sassc
}|| {
echo "\n Operation canceled Bye"
echo -e "\n Operation canceled Bye"
exit 1
}

elif has_command yum; then

read -p "[ trusted ] specify the root password : " -t 20 -s
[[ -n "$REPLY" ]] && {
echo "\n running: sudo yum install sassc "
echo -e "\n running: sudo yum install sassc "
sudo -S <<< $REPLY yum install sassc
}|| {
echo "\n Operation canceled Bye"
echo -e "\n Operation canceled Bye"
exit 1
}

elif has_command pacman; then

read -p "[ trusted ] specify the root password : " -t 20 -s
[[ -n "$REPLY" ]] && {
echo "\n running: sudo pacman -S --noconfirm sassc "
echo -e "\n running: sudo pacman -S --noconfirm sassc "
sudo -S <<< $REPLY pacman -S --noconfirm sassc
}|| {
echo "\n Operation canceled Bye"
echo -e "\n Operation canceled Bye"
exit 1
}

Expand Down

0 comments on commit 93142f7

Please sign in to comment.