The default shell used to run obuilder commands is currently /bin/bash. While this works under Linux and MacOS, this will fail under *BSD where bash, once installed, will be /usr/local/bin/bash.
This PR tries to make the location of bash flexible:
the test framework will use which bash to get its proper path.
commands spawned as /bin/bash -c ... are replaced with /usr/bin/env bash -c ... which will perform identically as long as a bash binary exists in the user's PATH.
This PR is necessary for the manifest.bash test to pass under FreeBSD.
The default shell used to run obuilder commands is currently
/bin/bash
. While this works under Linux and MacOS, this will fail under *BSD where bash, once installed, will be/usr/local/bin/bash
.This PR tries to make the location of
bash
flexible:which bash
to get its proper path./bin/bash -c ...
are replaced with/usr/bin/env bash -c ...
which will perform identically as long as abash
binary exists in the user'sPATH
.This PR is necessary for the
manifest.bash
test to pass under FreeBSD.