From bcd771811e57f43550ead11ef1d40f210ae2378b Mon Sep 17 00:00:00 2001 From: Tomas Kracmar Date: Mon, 8 Sep 2025 12:54:35 +0200 Subject: [PATCH] Fix empty variable --- scripts/podx-tools.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/podx-tools.sh b/scripts/podx-tools.sh index 59bd038..ad867b9 100755 --- a/scripts/podx-tools.sh +++ b/scripts/podx-tools.sh @@ -377,7 +377,7 @@ if cands: else: print('', end='') PY - <<<"$json")" + <<<"$json")" || id="" # Fallback: if the list contains exactly one KB, use its id if [ -z "$id" ]; then id="$(printf '%s' "$json" | python3 - <<'PY' @@ -393,7 +393,7 @@ if isinstance(items, list) and len(items)==1: else: print('', end='') PY -)" +)" || id="" fi if [ -n "$id" ]; then echo "[owui] resolved id for \"$name\": $id"