2
0
Fork 0
mirror of https://github.com/alexanderepstein/Bash-Snippets synced 2018-11-08 02:59:35 +01:00

Adding taste to install and uninstaller

This commit is contained in:
Alex Epstein 2017-06-30 01:45:01 -04:00
parent 299bba3fdd
commit c715b15dba
2 changed files with 30 additions and 0 deletions

View file

@ -51,6 +51,14 @@ if [[ $# == 0 ]]; then
cd .. || exit 1
fi
unset answer
echo -n "Do you wish to install taste [Y/n]: "
read -r answer
if [[ "$answer" == "Y" || "$answer" == "y" ]] ;then
cd taste || exit 1
./install.sh
cd .. || exit 1
fi
fi
@ -74,6 +82,10 @@ elif [[ $1 == "movies" ]]; then
cd movies || exit 1
./install.sh || exit 1
cd .. || exit 1
elif [[ $1 == "taste" ]]; then
cd taste || exit 1
./install.sh || exit 1
cd .. || exit 1
elif [[ $1 == "all" ]];then
cd currency || exit 1
./install.sh || exit 1
@ -90,6 +102,9 @@ elif [[ $1 == "all" ]];then
cd movies || exit 1
./install.sh || exit 1
cd .. || exit 1
cd taste || exit 1
./install.sh || exit 1
cd .. || exit 1
elif [[ $1 == "update" ]]; then
echo "Updating scripts..."
if [[ -f /usr/local/bin/currency ]];then
@ -117,6 +132,11 @@ elif [[ $1 == "update" ]]; then
./install.sh || exit 1
cd .. || exit 1
fi
if [[ -f /usr/local/bin/taste ]];then
cd taste || exit 1
./install.sh || exit 1
cd .. || exit 1
fi
fi
echo "Bash Snippets version $currentVersion"

View file

@ -57,3 +57,13 @@ if [[ -f /usr/local/bin/movies ]];then
cd .. || exit 1
fi
fi
if [[ -f /usr/local/bin/taste ]];then
echo -n "Do you wish to uninstall movies [Y/n]: "
read -r answer
if [[ "$answer" == "Y" || "$answer" == "y" ]] ;then
cd taste || exit 1
./uninstall.sh
cd .. || exit 1
fi
fi