Commit 42a2449c authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] try normal install before trying sudo

parent 79881fb7
...@@ -9,7 +9,12 @@ then ...@@ -9,7 +9,12 @@ then
then then
gem install scss_lint gem install scss_lint
else else
sudo gem install scss_lint gem install scss_lint
if [ $? -ne 0 ]
then
echo -e "\033[0;34mInstallation failed, trying to install with sudo\033[0m";
sudo gem install scss_lint
fi
fi fi
else else
echo -e "\n\033[0;31mYou need to have ruby installed on your machine in order for scss-lint to work!\033[0m\n"; echo -e "\n\033[0;31mYou need to have ruby installed on your machine in order for scss-lint to work!\033[0m\n";
...@@ -17,5 +22,3 @@ then ...@@ -17,5 +22,3 @@ then
else else
echo -e "\033[0;32mscss-lint already installed ✓\033[0m\n" echo -e "\033[0;32mscss-lint already installed ✓\033[0m\n"
fi fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment