Skip to content

Commit

Permalink
Quickfix command import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzvonimir committed Nov 6, 2024
1 parent a713845 commit cf8488d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ func (d *Daemon) InstallDaemonConfiguration() error {

collectCmd := []string{}

// TODO: fix this thing, as it is absolutly not robust, and it might not work in all cases
if len(commands) > 0 && commands[0] != "lda" {
if strings.Contains(d.config.ExePath, commands[0]) {
commands = commands[1:]
}
for _, command := range commands {
d.logger.Debug().Msgf("Checking command path: %s", command)
collectCmd = append(collectCmd, command)
Expand Down

0 comments on commit cf8488d

Please sign in to comment.