Remove confirmation prompt when installing

This commit is contained in:
Tony Grosinger 2022-09-21 14:53:58 -07:00
parent d5b32eed4b
commit 7d5f01ad62

View File

@ -113,23 +113,8 @@ function performSetup() {
# Determine which mode we are running in. (Does the install script exist in the dotfiles directory?)
if [ -f ${DOTFILES_DIR}/install.sh ]; then
echo "Running in Mode 1: Already cloned repository"
if [ "${1}" != "-y" ]; then
echo "This will create symlinks and destroy any conflicting configs already in place.";
read -p "Continue? [y/N] " choice
# Perform the logic
case "$choice" in
Y|y|yes )
performSetup ${HOME}
echo "Done! Restart your shell to see changes"
;;
* ) echo "Aborted!";;
esac
else
performSetup ${HOME}
echo "Done! Restart your shell to see changes"
fi
performSetup ${HOME}
echo "Done! Restart your shell to see changes"
else
echo "Running in Mode 2: Direct from Curl"