Fix the update script when not using /etc/darkcloud-nvimconfig as the darkcloudpath

This commit is contained in:
Kevin MacMartin 2024-03-03 21:05:16 -05:00
parent a07f16f3e4
commit ebc365b812

8
update
View file

@ -250,27 +250,27 @@ fi
### GENERATE PLUGIN HELP ### GENERATE PLUGIN HELP
type -P vim >/dev/null && { type -P vim >/dev/null && {
printf '%s' "$cbg_blue >> Generating plugin help:$c_reset" printf '%s' "$cbg_blue >> Generating plugin help:$c_reset"
$timeout_command --preserve-status --foreground 1m nvim -u ./init.vim -c 'Helptags|qa!' $timeout_command --preserve-status --foreground 1m nvim -c 'Helptags|qa!'
if (( ! $? )); then if (( ! $? )); then
printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset" printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset"
else else
reset -I reset -I
printf '%s\n' "$cfg_red_bold FAIL! $c_reset" printf '%s\n' "$cfg_red_bold FAIL! $c_reset"
error "nvim -u './init.vim' -c 'Helptags|qa!'" 'Generating helpdocs for the submodules failed' error "nvim -c 'Helptags|qa!'" 'Generating helpdocs for the submodules failed'
fi fi
} }
### UPDATE REMOTE PLUGINS ### UPDATE REMOTE PLUGINS
printf '%s' "$cbg_blue >> Updating remote plugins for neovim:$c_reset" printf '%s' "$cbg_blue >> Updating remote plugins for neovim:$c_reset"
$timeout_command --preserve-status --foreground 1m nvim -u ./init.vim -c ':UpdateRemotePlugins|qa!' $timeout_command --preserve-status --foreground 1m nvim -c ':UpdateRemotePlugins|qa!'
if (( ! $? )); then if (( ! $? )); then
printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset" printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset"
else else
reset -I reset -I
printf '%s\n' "$cfg_red_bold FAIL! $c_reset" printf '%s\n' "$cfg_red_bold FAIL! $c_reset"
error "nvim -u ./init.vim -c ':UpdateRemotePlugins|qa!'" 'Updating remote plugins for neovim failed' error "nvim -c ':UpdateRemotePlugins|qa!'" 'Updating remote plugins for neovim failed'
fi fi
### FINISH ### FINISH