Don't call bash for unix because it can mess up the configure script

This commit is contained in:
Joey Yakimowich-Payne 2020-05-10 10:42:01 -06:00 • committed by genotrance
commit 3719607355

View file

@ -482,8 +482,12 @@ proc configure*(path, check: string, flags = "") =
if fileExists(path / i): if fileExists(path / i):
echo "# Running autogen.sh" echo "# Running autogen.sh"
echoDebug execAction( when defined(unix):
&"cd {(path / i).parentDir().sanitizePath} && bash ./autogen.sh").output echoDebug execAction(
&"cd {(path / i).parentDir().sanitizePath} && ./autogen.sh").output
else:
echoDebug execAction(
&"cd {(path / i).parentDir().sanitizePath} && bash ./autogen.sh").output
break break
@ -499,8 +503,12 @@ proc configure*(path, check: string, flags = "") =
if fileExists(path / "configure"): if fileExists(path / "configure"):
echo "# Running configure " & flags echo "# Running configure " & flags
var when defined(unix):
cmd = &"cd {path.sanitizePath} && bash ./configure" var
cmd = &"cd {path.sanitizePath} && ./configure"
else:
var
cmd = &"cd {path.sanitizePath} && bash ./configure"
if flags.len != 0: if flags.len != 0:
cmd &= &" {flags}" cmd &= &" {flags}"