Remove confirmation prompt when installing
This commit is contained in:
parent
d5b32eed4b
commit
7d5f01ad62
19
install.sh
19
install.sh
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user