mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-21 11:22:34 -05:00
Fix the update script when not using /etc/darkcloud-nvimconfig as the darkcloudpath
This commit is contained in:
parent
a07f16f3e4
commit
ebc365b812
1 changed files with 4 additions and 4 deletions
8
update
8
update
|
@ -250,27 +250,27 @@ fi
|
|||
### GENERATE PLUGIN HELP
|
||||
type -P vim >/dev/null && {
|
||||
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
|
||||
printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset"
|
||||
else
|
||||
reset -I
|
||||
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
|
||||
}
|
||||
|
||||
### UPDATE REMOTE PLUGINS
|
||||
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
|
||||
printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset"
|
||||
else
|
||||
reset -I
|
||||
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
|
||||
|
||||
### FINISH
|
||||
|
|
Loading…
Reference in a new issue