diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-09-16 15:27:01 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-09-16 15:27:01 +0200 |
| commit | 3a3a4506fac92ef24ea6a999ceb871299b4aa4dc (patch) | |
| tree | 8a32df7aab0bf04c82f543eb6ad18e1cd9ae94c9 | |
| parent | cb71b3bd2e3394ccecc2fb39965290ad9810ead3 (diff) | |
| download | dotfiles-3a3a4506fac92ef24ea6a999ceb871299b4aa4dc.tar.gz dotfiles-3a3a4506fac92ef24ea6a999ceb871299b4aa4dc.zip | |
Updating is more or less the same as installing
| -rwxr-xr-x | neovim.sh | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -132,7 +132,7 @@ update_version() { valid_choice=false while [ "$valid_choice" = false ]; do # Determine which version to update to (nightly/stable) - printf "Select version to update to:\n" + printf "Select version to install/update to:\n" printf " 1. Nightly\n" printf " 2. Stable\n" printf " 3. Choose specific version by tag\n" @@ -319,16 +319,16 @@ else read -p "Install Neovim? (y/n): " install_choice case $install_choice in - [Yy] ) - choose_version - ;; - [Nn] ) - echo "Exiting..." - exit - ;; - * ) - handle_error "Invalid choice. Please enter 'y' for yes or 'n' for no." - ;; + [Yy]) + choose_version + ;; + [Nn]) + echo "Exiting..." + exit + ;; + *) + handle_error "Invalid choice. Please enter 'y' for yes or 'n' for no." + ;; esac fi @@ -376,7 +376,7 @@ display_breaking_changes() { # Main loop while [ "$SHOW_PROMPT" -gt 0 ]; do printf "Select an option:\n" - printf " 1. Update Neovim\n" + printf " 1. Install/update Neovim\n" printf " 2. Check for updates\n" printf " 3. Uninstall Neovim\n" printf " 4. Run Neovim\n" |
