mirror of
https://github.com/whyour/qinglong.git
synced 2026-01-28 02:58:21 +08:00
Add QL_DIR validation to ql.sh
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
9bd8318371
commit
7ea2d362f0
|
|
@ -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 "$@"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user