Skip to content

Commit cf5b594

Browse files
committed
fix: add more errro options to bash scripts
1 parent 49e37fa commit cf5b594

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

platforms/build-3ds.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

3+
# Exit immediately if a command exits with a non-zero status.
34
set -e
5+
## Treat undefined variables as an error
6+
set -u
7+
# fails if any part of a pipeline (|) fails
8+
set -o pipefail
49

510
## options: "smart, complete_rebuild"
611
export COMPILE_TYPE="smart"

platforms/build-android.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

3+
# Exit immediately if a command exits with a non-zero status.
34
set -e
5+
## Treat undefined variables as an error
6+
set -u
7+
# fails if any part of a pipeline (|) fails
8+
set -o pipefail
49

510
if [ ! -d "toolchains" ]; then
611
mkdir -p toolchains

platforms/build-switch.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

3+
# Exit immediately if a command exits with a non-zero status.
34
set -e
5+
## Treat undefined variables as an error
6+
set -u
7+
# fails if any part of a pipeline (|) fails
8+
set -o pipefail
49

510
## options: "smart, complete_rebuild"
611
export COMPILE_TYPE="smart"

platforms/build-web.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

3+
# Exit immediately if a command exits with a non-zero status.
34
set -e
5+
## Treat undefined variables as an error
6+
set -u
7+
# fails if any part of a pipeline (|) fails
8+
set -o pipefail
49

510
## options: "smart, complete_rebuild"
611
export COMPILE_TYPE="smart"

0 commit comments

Comments
 (0)