We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b85f660 + c89410a commit 3d3b9c5Copy full SHA for 3d3b9c5
hack/lib/init.sh
@@ -51,8 +51,8 @@ os::log::stacktrace::install
51
os::util::environment::update_path_var
52
53
if [[ -z "${OS_TMP_ENV_SET-}" ]]; then
54
- if [[ "${BASH_SOURCE[0]}" =~ .*\.sh ]]; then
55
- os::util::environment::setup_tmpdir_vars "$( basename "${BASH_SOURCE[0]}" ".sh" )"
+ if [[ "${0}" =~ .*\.sh ]]; then
+ os::util::environment::setup_tmpdir_vars "$( basename "${0}" ".sh" )"
56
else
57
os::util::environment::setup_tmpdir_vars "shell"
58
fi
0 commit comments