diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-05-28 09:49:58 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2022-05-28 10:30:03 -0700 |
commit | c43e2874c083d66a563f262f7fb7d7ec84bce814 (patch) | |
tree | fa28e60d827f73ae50e90cae5b7b475e9b6ff345 /scripts/vim-patch.sh | |
parent | eab4d03a3264b2afaf803ed839fa25bc4e7acedd (diff) | |
download | rneovim-c43e2874c083d66a563f262f7fb7d7ec84bce814.tar.gz rneovim-c43e2874c083d66a563f262f7fb7d7ec84bce814.tar.bz2 rneovim-c43e2874c083d66a563f262f7fb7d7ec84bce814.zip |
fix(vim-patch.sh)
In scripts/vim-patch.sh line 335:
printf '
^-- SC2183 (warning): This format string has 4 variables, but is passed 3 arguments.
In scripts/vim-patch.sh line 597:
list_missing_vimpatches 1 "$@" | while read -r vim_commit; do
^--------^ SC2030 (info): Modification of vim_commit is local (to subshell caused by pipeline)
In scripts/vim-patch.sh line 626:
done < <(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id --name-only -r "${vim_commit}" -- . ':!src/version.c')
^-----------^ SC2031 (info): vim_commit was modified in a subshell. That change might be lost.
For more information:
https://www.shellcheck.net/wiki/SC2183 -- This format string has 4 variable...
https://www.shellcheck.net/wiki/SC2030 -- Modification of vim_commit is loc...
https://www.shellcheck.net/wiki/SC2031 -- vim_commit was modified in a subs...
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-x | scripts/vim-patch.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 8235949156..472b79cbf4 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -4,6 +4,8 @@ set -e set -u # Use privileged mode, which e.g. skips using CDPATH. set -p +# https://www.shellcheck.net/wiki/SC2031 +shopt -s lastpipe # Ensure that the user has a bash that supports -A if [[ "${BASH_VERSINFO[0]}" -lt 4 ]]; then @@ -345,7 +347,7 @@ stage_patch() { See the wiki for more information: * https://github.com/neovim/neovim/wiki/Merging-patches-from-upstream-vim -' "${vim_version}" "${BASENAME}" "${BASENAME}" +' "${vim_version}" "${BASENAME}" "${BASENAME}" "${BASENAME}" return $ret } |