1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 20:35:11 +01:00

Check for the ~/.dot_* files. This way install.sh can be used for

updating
This commit is contained in:
Michiel Scholten
2014-07-16 16:42:18 +02:00
parent 2f8a81743d
commit 2b2a86a465

View File

@@ -45,20 +45,26 @@ fi
echo "INFO: Vundle Install"
vim +BundleInstall +qall
echo
echo "Do you wish to install mercurial stuff?"
select yn in "Yes" "No"; do
case $yn in
Yes ) install_hg; break;;
No ) touch ~/.dot_no_hg; break;;
esac
done
if [ -e ~/.dot_has_hg ]; then
install_hg
elif [ ! -e ~/.dot_no_hg ]; then
echo
echo "Do you wish to install mercurial stuff?"
select yn in "Yes" "No"; do
case $yn in
Yes ) install_hg; break;;
No ) touch ~/.dot_no_hg; break;;
esac
done
fi
echo
echo "Is this machine a server?"
select yn in "Yes" "No"; do
case $yn in
Yes ) touch ~/.dot_is_server; break;;
No ) touch ~/.dot_no_server; break;;
esac
done
if [ ! -e ~/.dot_is_server ] && [ ! -e ~/.dot_no_server ]; then
echo
echo "Is this machine a server?"
select yn in "Yes" "No"; do
case $yn in
Yes ) touch ~/.dot_is_server; break;;
No ) touch ~/.dot_no_server; break;;
esac
done
fi