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 {