@@ -86,12 +86,12 @@ function parse_option() {
86
86
87
87
dirname_shim () {
88
88
local path=" $1 "
89
-
89
+
90
90
# Remove trailing slashes
91
91
path=" ${path%/ } "
92
92
93
93
# If there's no slash, return "."
94
- if [[ " $path " != * /* ]]; then
94
+ if [[ " ${ path} " != * /* ]]; then
95
95
echo " ."
96
96
return
97
97
fi
@@ -108,10 +108,10 @@ toolchain_path_prefix="%{toolchain_path_prefix}"
108
108
# Sometimes this path may be an absolute path in which case we dont do anything because
109
109
# This is using the host toolchain to build.
110
110
if [[ ${toolchain_path_prefix} != /* ]]; then
111
- toolchain_path_prefix=" $script_dir /../../${toolchain_path_prefix# external/ } "
112
- toolchain_path_prefix_abs=" $( cd " $toolchain_path_prefix " && pwd -P) /"
111
+ toolchain_path_prefix=" ${ script_dir} /../../${toolchain_path_prefix# external/ } "
112
+ toolchain_path_prefix_abs=" $( cd " ${ toolchain_path_prefix} " && pwd -P) /"
113
113
else
114
- toolchain_path_prefix_abs=" $toolchain_path_prefix "
114
+ toolchain_path_prefix_abs=" ${ toolchain_path_prefix} "
115
115
fi
116
116
117
117
if [[ ! -f ${toolchain_path_prefix} bin/clang ]]; then
@@ -128,7 +128,7 @@ function sanitize_option() {
128
128
elif [[ ${opt} =~ ^-fsanitize-(ignore| black)list= [^/] ]] && [[ ${script_dir} == /* ]]; then
129
129
# shellcheck disable=SC2206
130
130
parts=(${opt/ =/ } ) # Split flag name and value into array.
131
- printf " %s" " ${parts[0]} =$script_dir /../../../${parts[1]} "
131
+ printf " %s" " ${parts[0]} =${ script_dir} /../../../${parts[1]} "
132
132
else
133
133
printf " %s" " ${opt} "
134
134
fi
0 commit comments