Commit 95f9ed9 1 parent 3d2b6dc commit 95f9ed9 Copy full SHA for 95f9ed9
File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ usage() {
8
8
}
9
9
10
10
run_command () {
11
- PATH=" ${app_dir} :${brew_prefix} /bin:${brew_prefix} /opt/statica/libexec/tools.d:$PATH " " $@ "
11
+ local bin=" ${brew_prefix} /bin"
12
+ local libexec=" ${brew_prefix} /opt/statica/libexec:${PATH} "
13
+ PATH=" ${app_dir} :${bin} :${libexec} "
12
14
}
13
15
14
16
if [ $# -lt 2 ]; then
34
36
35
37
36
38
modes=" $@ "
39
+
40
+ if [ -d " ${source} /tools.d" ]; then
41
+ tools_dir=" ${source} /tools.d"
42
+ else
43
+ tools_dir=" ${brew_prefix} /opt/statica/libexec/tools.d"
44
+ fi
45
+
37
46
echo " Scanning ${source} "
38
- for scanner in tools.d /* ; do
47
+ for scanner in ${tools_dir} /* ; do
39
48
name=$( basename " ${scanner} " )
40
49
report=" ${tmpdir} /${name} .sarif"
41
50
echo " Running ${name} and reporting to ${report} "
You can’t perform that action at this time.
0 commit comments