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:
parent
08874d9aec
commit
a9149a2e4c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue