From ea9824c449bd087cc9447260741cee1f6cb261c4 Mon Sep 17 00:00:00 2001 From: Dmitry <98899785+mdqst@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:00:28 +0300 Subject: [PATCH] Fix uninitialized my_array variable in the script Update dco_check.sh Fix uninitialized my_array variable in the script Signed-off-by: Dmitry <98899785+mdqst@users.noreply.github.com> --- scripts/dco_check.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/dco_check.sh b/scripts/dco_check.sh index 68a5438583..a1f239d134 100755 --- a/scripts/dco_check.sh +++ b/scripts/dco_check.sh @@ -15,6 +15,7 @@ ## status=0 +my_array=() while IFS= read -r -a line; do my_array+=( "$line" ) done < <( git branch -r | grep -v origin/HEAD )