Skip to content

Commit

Permalink
Fix etxtbsy check
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Nov 14, 2023
1 parent 19cb2b4 commit d790b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/autoupdate/findnew.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func CheckExecutable(ctx context.Context, potentialBinary string, args ...string
cmd.Env = append(cmd.Env, "LAUNCHER_SKIP_UPDATES=TRUE")

execErr := cmd.Run()
if execErr != nil && errors.Is(ctx.Err(), syscall.ETXTBSY) {
if execErr != nil && errors.Is(execErr, syscall.ETXTBSY) {
continue
}

Expand All @@ -394,7 +394,7 @@ func CheckExecutable(ctx context.Context, potentialBinary string, args ...string
return supressRoutineErrors(execErr)
}

return fmt.Errorf("could not exec %s -- text file busy", potentialBinary)
return fmt.Errorf("could not exec %s despite retries due to text file busy", potentialBinary)
}

// supressRoutineErrors attempts to tell whether the error was a
Expand Down

0 comments on commit d790b77

Please sign in to comment.