From 7ea2d362f0f35fe26864517b3fb1d72c56b6c057 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:41:26 +0000 Subject: [PATCH] Add QL_DIR validation to ql.sh Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- shell/ql.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/ql.sh b/shell/ql.sh index 24e7b87f..8497e27a 100755 --- a/shell/ql.sh +++ b/shell/ql.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +if [[ -z "$QL_DIR" ]]; then + echo "Error: QL_DIR environment variable is not set" + exit 1 +fi + dir_shell=$QL_DIR/shell . $dir_shell/update.sh "$@"