From e55c4802304eab76a956b4319283f28ba8cb95c6 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Sun, 6 Oct 2019 17:02:12 -0500 Subject: [PATCH] Fix find for OSX --- nimterop/build.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nimterop/build.nim b/nimterop/build.nim index ce76914..c14bdaf 100644 --- a/nimterop/build.nim +++ b/nimterop/build.nim @@ -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 = ""