Fix shellcheck error SC2155

Close https://github.com/neovim/neovim/pull/11765
This commit is contained in:
Jan Edmund Lazo 2020-10-15 21:52:44 -04:00
parent 82b09bc9d2
commit 074745d924
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
1 changed files with 2 additions and 1 deletions

View File

@ -597,9 +597,10 @@ list_missing_previous_vimpatches_for_patch() {
set -u
local -a missing_unique
local stat
while IFS= read -r line; do
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")")
done < <(printf '%s\n' "${missing_list[@]}" | sort -u)