Add QL_DIR validation to ql.sh

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-12-30 16:41:26 +00:00
parent 9bd8318371
commit 7ea2d362f0

View File

@ -1,4 +1,9 @@
#!/usr/bin/env bash #!/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=$QL_DIR/shell
. $dir_shell/update.sh "$@" . $dir_shell/update.sh "$@"