From 106cc72726fed2dc71b62790dd9249fcddb138d4 Mon Sep 17 00:00:00 2001 From: The Magician Date: Thu, 7 Dec 2023 16:49:27 +0000 Subject: [PATCH] Fix arithmetic bug --- pre-commit.shellcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre-commit.shellcheck b/pre-commit.shellcheck index 3d87ed6..d24af67 100755 --- a/pre-commit.shellcheck +++ b/pre-commit.shellcheck @@ -30,7 +30,7 @@ function main { declare -a files=() while read -r file; do - files[${files[@]}+1]="$file" + files[${#files[@]}+1]="$file" done < <(get_shell_files) if [[ "${#files[@]}" -ne 0 ]]; then