From bd352812593a9388a0f798cd5c5832c34dd2dcfc Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 15 Sep 2026 23:20:02 +0100 Subject: [PATCH] fix: plain if in the installer's uv lookup (shellcheck SC2015) --- deployment/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deployment/install.sh b/deployment/install.sh index 95ed1401..509a04a2 100755 --- a/deployment/install.sh +++ b/deployment/install.sh @@ -96,7 +96,9 @@ main() { # uv installs and upgrades the package, and brings Python 3.12 when the system has none. local uv="" candidate found for candidate in "$(command -v uv 2>/dev/null || true)" "$HOME/.local/bin/uv" "$HOME/.cargo/bin/uv"; do - [ -n "$candidate" ] && [ -x "$candidate" ] || continue + if [ -z "$candidate" ] || [ ! -x "$candidate" ]; then + continue + fi found="$("$candidate" --version 2>/dev/null | awk '{print $2}')" || continue if [ -n "$found" ] && version_ge "$found" "$UV_MIN_VERSION"; then uv="$candidate"