Fix find for OSX
This commit is contained in:
parent
e78fa71ed1
commit
e55c480230
1 changed files with 3 additions and 1 deletions
|
|
@ -264,8 +264,10 @@ proc findFile*(file: string, dir: string, recurse = true, first = false, regex =
|
|||
cmd =
|
||||
when defined(windows):
|
||||
"nimgrep --filenames --oneline --nocolor $1 $2 $3"
|
||||
else:
|
||||
elif defined(linux):
|
||||
"find $3 $1 -regextype egrep -regex $2"
|
||||
elif defined(osx):
|
||||
"find -E $3 $1 -regex $2"
|
||||
|
||||
recursive = ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue