Skip to content

Commit

Permalink
use bash rather than sh on bsd
Browse files Browse the repository at this point in the history
Many conda recipe build files use shell syntax and commands that are
specific to bash and not POSIX shells.

Given the large number of these that occur it is easier run the build
script in bash than convert them. On Linux and macOS, bash is already
used explicitly.

On FreeBSD, bash is not part of the base system and must be installed
via ports. The install location is /usr/local/bin/bash.
  • Loading branch information
jjhelmus authored and jezdez committed Jun 5, 2023
1 parent 58d5c4e commit 3f8f900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
import conda_build.windows as windows

if "bsd" in sys.platform:
shell_path = "/bin/sh"
shell_path = "/usr/local/bin/bash"
elif utils.on_win:
shell_path = "bash"
else:
Expand Down

0 comments on commit 3f8f900

Please sign in to comment.