Skip to content

Commit

Permalink
fix: remove sock file only on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpuljak committed Mar 6, 2024
1 parent bfb529a commit 8614d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ func forwardDockerSock(targetOptions types.TargetOptions) (string, error) {
if err != nil {
log.Error(err)
startedChan <- false
os.Remove(localSockPath)
}
os.Remove(localSockPath)
}()

<-startedChan
Expand Down

0 comments on commit 8614d18

Please sign in to comment.