Allow running scripts using msys2/mingw/git bash (#1954)

Signed-off-by: Brandon DeRosier <x@bdero.me>
monroegm-disable-blank-issue-2
Brandon DeRosier 4 years ago committed by GitHub
parent 43a0e89c20
commit ee875f979b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. # Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
# #
# SPDX-License-Identifier: Apache-2.0 OR MIT # SPDX-License-Identifier: Apache-2.0 OR MIT
# #
@ -15,9 +15,10 @@ while [[ -h "$SOURCE" ]]; do
done done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
if [[ "$OSTYPE" = *"darwin"* ]]; if [[ "$OSTYPE" == *"darwin"* ]]; then
then
PYTHON=$DIR/runtime/python-3.7.10-rev1-darwin/Python.framework/Versions/3.7/bin/python3 PYTHON=$DIR/runtime/python-3.7.10-rev1-darwin/Python.framework/Versions/3.7/bin/python3
elif [[ "$OSTYPE" == "msys" ]]; then
PYTHON=$DIR/runtime/python-3.7.10-rev1-windows/python/python.exe
else else
PYTHON=$DIR/runtime/python-3.7.10-rev2-linux/python/bin/python PYTHON=$DIR/runtime/python-3.7.10-rev2-linux/python/bin/python
fi fi

Loading…
Cancel
Save