|
|
@ -34,7 +34,7 @@ section "Bash Array Checks (Duplicate Indices and Syntax Errors)"
|
|
|
|
|
|
|
|
|
|
|
|
check_bash_arrays(){
|
|
|
|
check_bash_arrays(){
|
|
|
|
local filename="$1"
|
|
|
|
local filename="$1"
|
|
|
|
echo -n "checking bash arrays for duplicate definitions: $1"
|
|
|
|
echo -n "checking bash arrays: $1"
|
|
|
|
set +eo pipefail
|
|
|
|
set +eo pipefail
|
|
|
|
dups="$(grep -o '[[:alnum:]]\+[[[:digit:]]\+]=' "$filename" | sort | uniq -d)"
|
|
|
|
dups="$(grep -o '[[:alnum:]]\+[[[:digit:]]\+]=' "$filename" | sort | uniq -d)"
|
|
|
|
early_equals="$(grep -o '[[:alnum:]]\+=[[[:digit:]]\+]=' "$filename")"
|
|
|
|
early_equals="$(grep -o '[[:alnum:]]\+=[[[:digit:]]\+]=' "$filename")"
|
|
|
|