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.
This commit is contained in:
puenka 2021-10-22 10:41:08 +02:00 committed by GitHub
parent 08874d9aec
commit a9149a2e4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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