fix(nvim): use correct parsing for nvim version check

This commit is contained in:
Price Hiller 2022-11-11 14:22:59 -06:00
parent e1c7301790
commit 4103a26fa8

View File

@ -14,7 +14,7 @@
# noqa risky-shell-pipe
ansible.builtin.shell: |
set pipefail
nvim --version | head -n 1 | awk -F '-' '{ print $NF }' | cut -c2-
nvim --version | head -n 1 | awk -F '-' '{ print $NF }' | cut -d '+' -f2 | cut -c2-
changed_when: false
register: nvim_installed_version
when: nvim_installed.rc == 0