File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 8
8
# failing if any do.
9
9
#
10
10
11
+ # Strict bash options.
12
+ #
13
+ # -e: exit immediately if a command fails (with non-zero return code),
14
+ # or if a function returns non-zero.
15
+ #
16
+ # -u: treat unset variables and parameters as error when performing
17
+ # parameter expansion.
18
+ # In case a variable ${VAR} is unset but we still need to expand,
19
+ # use the syntax ${VAR:-} to expand it to an empty string.
20
+ #
21
+ # -o pipefail: set the return value of a pipeline to the value of the last
22
+ # (rightmost) command to exit with a non-zero status, or zero
23
+ # if all commands in the pipeline exit successfully.
24
+ #
25
+ # Reference: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html.
26
+ set -euo pipefail
27
+
11
28
MACARON_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && cd ../.. && pwd) "
12
29
SAMPLES_PATH=" ${MACARON_DIR} /tests/malware_analyzer/pypi/resources/sourcecode_samples"
13
30
You can’t perform that action at this time.
0 commit comments