2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-02 20:52:13 +00:00

Fixes for POSIX sh.

This commit is contained in:
Rene Rivera
2021-01-16 16:59:28 -06:00
parent c6937c0228
commit f3aa3f9ae8

View File

@@ -18,10 +18,11 @@ B2_GUESS_TOOLSET=${FALSE}
# We need to calculate and set SCRIPT_PATH and SCRIPT_DIR to reference this
# script so that we can refer to file relative to it.
if test -v BASH_SOURCE ; then
SCRIPT_PATH=""
if test "${BASH_SOURCE}" ; then
SCRIPT_PATH=${BASH_SOURCE[0]}
fi
if test "${SCRIPT_PATH}" == "" ; then
if test "${SCRIPT_PATH}" = "" ; then
SCRIPT_PATH=$0
fi
SCRIPT_DIR="$( cd "$( dirname "${SCRIPT_PATH}" )" && pwd )"