Added more color to install.sh

This commit is contained in:
G2-Games 2022-09-03 02:19:21 -05:00
parent fd857b7825
commit ffe4145ab0

View file

@ -12,7 +12,7 @@ then
chmod +x /home/$USER/.welcome/welcome.sh chmod +x /home/$USER/.welcome/welcome.sh
echo 'bash /home/$USER/.welcome/welcome.sh' >> $bashrc echo 'bash /home/$USER/.welcome/welcome.sh' >> $bashrc
tput rc el ed tput rc el ed
echo "Installed!" echo -e "\e[36mInstalled!\e[0m"
else else
tput sc tput sc
echo -e "\e[35mwelcome.sh\e[0m already installed!" echo -e "\e[35mwelcome.sh\e[0m already installed!"
@ -25,10 +25,10 @@ else
rmdir /home/$USER/.welcome rmdir /home/$USER/.welcome
sed -i 's#bash /home/$USER/.welcome/welcome.sh##g' $bashrc sed -i 's#bash /home/$USER/.welcome/welcome.sh##g' $bashrc
tput rc el ed tput rc el ed
echo "Uninstalled!" echo "\e[36mUninstalled!\e[0m"
else else
tput rc el ed tput rc el ed
echo "Cancelled." echo "\e[32mCancelled.\e[0m"
fi fi
fi fi