Merge pull request #459 from puenka/patch-1

Fix length of ICON_VARIANTS check.
This commit is contained in:
Vince 2021-10-22 17:27:12 +08:00 committed by GitHub
commit fc51330a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -558,7 +558,7 @@ check_param() {
fi fi
done ;; done ;;
-i) -i)
for i in {0..12}; do for i in {0..13}; do
if [[ "${value}" == "${ICON_VARIANTS[i]}" ]]; then if [[ "${value}" == "${ICON_VARIANTS[i]}" ]]; then
icon="${ICON_VARIANTS[i]}"; variant_found="true"; break icon="${ICON_VARIANTS[i]}"; variant_found="true"; break
fi fi