From 7d671a9e3c9d20c601b7276e6a1dbaadd416a985 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Wed, 18 Sep 2024 18:55:24 +0800 Subject: [PATCH] fix: fix wrong parameter order Signed-off-by: cuishuang --- cmd/agent/workspace/install_dotfiles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/agent/workspace/install_dotfiles.go b/cmd/agent/workspace/install_dotfiles.go index 6dd72f852..7723e3982 100644 --- a/cmd/agent/workspace/install_dotfiles.go +++ b/cmd/agent/workspace/install_dotfiles.go @@ -68,7 +68,7 @@ func (cmd *InstallDotfilesCmd) Run(ctx context.Context) error { if cmd.InstallScript != "" { logger.Infof("Executing install script %s", cmd.InstallScript) - command := "./" + strings.TrimPrefix("./", cmd.InstallScript) + cmd.InstallScript + command := "./" + strings.TrimPrefix(cmd.InstallScript, "./") + cmd.InstallScript err := ensureExecutable(command) if err != nil {