From 94e03d50ac97a7a9e04706d073a28ca4b3df7948 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Thu, 27 Aug 2020 14:01:43 -0500 Subject: [PATCH] better loop --- lib/linter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter.sh b/lib/linter.sh index 4e17890d..58b43157 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1082,7 +1082,7 @@ Footer() { #################################################### # Need to clean up the lanuage array of duplicates # #################################################### - mapfile -t UNIQUE_LINTED_ARRAY < <(echo "${LINTED_LANGUAGES_ARRAY[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' ') + UNIQUE_LINTED_ARRAY=($(for LANG in "${LINTED_LANGUAGES_ARRAY[@]}"; do echo "${LANG}"; done | sort -u)) ############################## # Prints for errors if found #