Skip to content

Commit

Permalink
v.util.diff: return diff options with the diff command for FreeBSD/Op…
Browse files Browse the repository at this point in the history
…enBSD (#21271)
  • Loading branch information
kimshrier committed Apr 13, 2024
1 parent cdb6f46 commit 175d74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/util/diff/diff.v
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn find_working_diff_command() !string {
}
$if freebsd || openbsd {
if diffcmd == 'diff' { // FreeBSD/OpenBSD diff have no `--version` option
return diffcmd
return if env_diffopts != '' { '${diffcmd} ${env_diffopts}' } else { diffcmd }
}
}
p := os.execute('${diffcmd} --version')
Expand Down

0 comments on commit 175d74c

Please sign in to comment.