From f58ae241fbd769db03656b3d6bc79fc50748a3cc Mon Sep 17 00:00:00 2001 From: engigu Date: Fri, 27 Mar 2026 17:24:35 +0800 Subject: [PATCH] fix: build error --- internal/services/tasks/ql_repo_parser.go | 5 ----- internal/utils/shell.go | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/services/tasks/ql_repo_parser.go b/internal/services/tasks/ql_repo_parser.go index e8eb866..fb7384a 100644 --- a/internal/services/tasks/ql_repo_parser.go +++ b/internal/services/tasks/ql_repo_parser.go @@ -469,8 +469,3 @@ func splitKeywords(s string) []string { } return res } - -func resolveAbsScriptsDir() string { - cwd, _ := os.Getwd() - return filepath.Join(cwd, "data", "scripts") -} diff --git a/internal/utils/shell.go b/internal/utils/shell.go index 5f7f1f6..56a6c5e 100644 --- a/internal/utils/shell.go +++ b/internal/utils/shell.go @@ -4,6 +4,7 @@ import ( "os" "os/exec" "runtime" + "strings" ) // GetShell 返回当前操作系统的 shell 和参数