From a9149a2e4c7e611700aeb359e3f9763eea194284 Mon Sep 17 00:00:00 2001 From: puenka Date: Fri, 22 Oct 2021 10:41:08 +0200 Subject: [PATCH] Fix length of ICON_VARIANTS check. ICON_VARIANTS has 14 entries but is currently only checked up to the 13th. Fixes an error when `-i zorin` is specified. --- lib-core.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-core.sh b/lib-core.sh index 952eec5..a9826fa 100755 --- a/lib-core.sh +++ b/lib-core.sh @@ -558,7 +558,7 @@ check_param() { fi done ;; -i) - for i in {0..12}; do + for i in {0..13}; do if [[ "${value}" == "${ICON_VARIANTS[i]}" ]]; then icon="${ICON_VARIANTS[i]}"; variant_found="true"; break fi