Fix shellcheck error SC2155
Close https://github.com/neovim/neovim/pull/11765
This commit is contained in:
parent
82b09bc9d2
commit
074745d924
|
@ -597,9 +597,10 @@ list_missing_previous_vimpatches_for_patch() {
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
local -a missing_unique
|
local -a missing_unique
|
||||||
|
local stat
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
local commit="${line%%:*}"
|
local commit="${line%%:*}"
|
||||||
local stat="$(git -C "${VIM_SOURCE_DIR}" show --format= --shortstat "${commit}")"
|
stat="$(git -C "${VIM_SOURCE_DIR}" show --format= --shortstat "${commit}")"
|
||||||
missing_unique+=("$(printf '%s\n %s' "$line" "$stat")")
|
missing_unique+=("$(printf '%s\n %s' "$line" "$stat")")
|
||||||
done < <(printf '%s\n' "${missing_list[@]}" | sort -u)
|
done < <(printf '%s\n' "${missing_list[@]}" | sort -u)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue