From 4c2a8e2b243bb03efa272684725d723feceeba1c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:33:45 +0000 Subject: [PATCH 1/5] Initial plan From 9bd8318371c66bb7900cf1e112dc964fdadf8da2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:40:18 +0000 Subject: [PATCH 2/5] Add ql.sh script and create symlinks in docker-entrypoint.sh Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- docker/docker-entrypoint.sh | 5 +++++ shell/ql.sh | 4 ++++ 2 files changed, 9 insertions(+) create mode 100755 shell/ql.sh diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index eb2027f2..a729bc9d 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -2,6 +2,11 @@ export PATH="$HOME/bin:$PATH" +# Create bin directory and symlinks for ql and task commands +mkdir -p "$HOME/bin" +ln -sf /ql/shell/ql.sh "$HOME/bin/ql" +ln -sf /ql/shell/task.sh "$HOME/bin/task" + dir_shell=/ql/shell . $dir_shell/share.sh diff --git a/shell/ql.sh b/shell/ql.sh new file mode 100755 index 00000000..24e7b87f --- /dev/null +++ b/shell/ql.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +dir_shell=$QL_DIR/shell +. $dir_shell/update.sh "$@" 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 3/5] 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 "$@" From b87fe2ebf028084df29b446583c6853132ca15b0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:43:04 +0000 Subject: [PATCH 4/5] Add quotes to variable expansions in ql.sh Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- shell/ql.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/ql.sh b/shell/ql.sh index 8497e27a..51e9a27e 100755 --- a/shell/ql.sh +++ b/shell/ql.sh @@ -5,5 +5,5 @@ if [[ -z "$QL_DIR" ]]; then exit 1 fi -dir_shell=$QL_DIR/shell -. $dir_shell/update.sh "$@" +dir_shell="$QL_DIR/shell" +. "$dir_shell/update.sh" "$@" From 8d5e485cd68c87d061bdbadf10507c1251616b22 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Dec 2025 17:00:10 +0000 Subject: [PATCH 5/5] Revert changes - linkCommandToDir already handles symlink creation Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- docker/docker-entrypoint.sh | 5 ----- shell/ql.sh | 9 --------- 2 files changed, 14 deletions(-) delete mode 100755 shell/ql.sh diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index a729bc9d..eb2027f2 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -2,11 +2,6 @@ export PATH="$HOME/bin:$PATH" -# Create bin directory and symlinks for ql and task commands -mkdir -p "$HOME/bin" -ln -sf /ql/shell/ql.sh "$HOME/bin/ql" -ln -sf /ql/shell/task.sh "$HOME/bin/task" - dir_shell=/ql/shell . $dir_shell/share.sh diff --git a/shell/ql.sh b/shell/ql.sh deleted file mode 100755 index 51e9a27e..00000000 --- a/shell/ql.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/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" "$@"