aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index fe6dcc1147..8287958ab5 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -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)