install.sh: Don't ask for terminal shell when updating | Misc
Handle a edgecase for config copying Remove an unnecessary print
This commit is contained in:
parent
d1f23d1bc3
commit
35b210b46a
|
@ -42,6 +42,7 @@ _copy_config() {
|
||||||
printf "%s\n" "Nvim Directory exists"
|
printf "%s\n" "Nvim Directory exists"
|
||||||
if [ "${_NO_BACKUP}" = "true" ]; then
|
if [ "${_NO_BACKUP}" = "true" ]; then
|
||||||
printf "%s\n" "Skipping backup as --no-backup flag was passed.."
|
printf "%s\n" "Skipping backup as --no-backup flag was passed.."
|
||||||
|
[ "${_UPDATE}" = "false" ] && rm -rf "${_CONFIG_PATH}"
|
||||||
else
|
else
|
||||||
printf "%s\n" "Taking backup of existing config.."
|
printf "%s\n" "Taking backup of existing config.."
|
||||||
mv "${_CONFIG_PATH}" "${_BACKUP_PATH}" || {
|
mv "${_CONFIG_PATH}" "${_BACKUP_PATH}" || {
|
||||||
|
@ -50,7 +51,6 @@ _copy_config() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
printf "%s\n" "Creating new nvim directory"
|
|
||||||
else
|
else
|
||||||
printf "%s\n" "Nvim Config doesn't exist so creating one"
|
printf "%s\n" "Nvim Config doesn't exist so creating one"
|
||||||
fi
|
fi
|
||||||
|
@ -147,7 +147,7 @@ main() {
|
||||||
|
|
||||||
_setup_arguments "${@}"
|
_setup_arguments "${@}"
|
||||||
_copy_config
|
_copy_config
|
||||||
_setup_terminal_shell
|
[ "${_UPDATE}" = "false" ] && _setup_terminal_shell
|
||||||
|
|
||||||
# install all plugins + compile them
|
# install all plugins + compile them
|
||||||
if _NVIM="$(command -v nvim)"; then
|
if _NVIM="$(command -v nvim)"; then
|
||||||
|
|
Loading…
Reference in New Issue