mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-06 14:16:25 +02:00
fix: move ADDON_LOWER assignment inside while loop to fix unbound variable error
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/fa06596a-da9b-4c3b-a9e0-76b955371d3e Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
40602ffc75
commit
332401bb5c
@@ -28,9 +28,9 @@ jobs:
|
||||
|
||||
TEXT="${ISSUE_TITLE} ${ISSUE_BODY}"
|
||||
TEXT_LOWER="$(printf '%s' "$TEXT" | tr '[:upper:]' '[:lower:]')"
|
||||
ADDON_LOWER="$(printf '%s' "$addon" | tr '[:upper:]' '[:lower:]')"
|
||||
|
||||
while IFS= read -r addon; do
|
||||
ADDON_LOWER="$(printf '%s' "$addon" | tr '[:upper:]' '[:lower:]')"
|
||||
[ -z "$ADDON_LOWER" ] && continue
|
||||
|
||||
if [[ "$TEXT_LOWER" == *"$ADDON_LOWER"* ]]; then
|
||||
|
||||
Reference in New Issue
Block a user