diff options
| -rw-r--r-- | meta/files/toolchain-shar-extract.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index 3b4647fca7..29c52e3b13 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh | |||
| @@ -1,6 +1,11 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | export LC_ALL=en_US.UTF-8 | 3 | export LC_ALL=en_US.UTF-8 |
| 4 | |||
| 5 | # The pipefail option is now part of POSIX (POSIX.1-2024) and available in more | ||
| 6 | # and more shells. Enable it if available to make the SDK installer more robust. | ||
| 7 | (set -o pipefail 2> /dev/null) && set -o pipefail | ||
| 8 | |||
| 4 | #Make sure at least one python is installed | 9 | #Make sure at least one python is installed |
| 5 | INIT_PYTHON=$(which python3 2>/dev/null ) | 10 | INIT_PYTHON=$(which python3 2>/dev/null ) |
| 6 | [ -z "$INIT_PYTHON" ] && INIT_PYTHON=$(which python2 2>/dev/null) | 11 | [ -z "$INIT_PYTHON" ] && INIT_PYTHON=$(which python2 2>/dev/null) |
