Skip to content

Commit b291ee3

Browse files
authored
Merge pull request github#14179 from github/smowton/fix/go-baseline-quoting
Fix space handling in Golang configure-baseline scripts
2 parents c18de7d + d13f421 commit b291ee3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22
if exist vendor\modules.txt (
3-
type %CODEQL_EXTRACTOR_GO_ROOT%\tools\baseline-config-vendor.json
3+
type "%CODEQL_EXTRACTOR_GO_ROOT%\tools\baseline-config-vendor.json"
44
) else (
5-
type %CODEQL_EXTRACTOR_GO_ROOT%\tools\baseline-config-empty.json
5+
type "%CODEQL_EXTRACTOR_GO_ROOT%\tools\baseline-config-empty.json"
66
)

go/codeql-tools/configure-baseline.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
if [ -f vendor/modules.txt ]; then
4-
cat $CODEQL_EXTRACTOR_GO_ROOT/tools/baseline-config-vendor.json
4+
cat "$CODEQL_EXTRACTOR_GO_ROOT/tools/baseline-config-vendor.json"
55
else
6-
cat $CODEQL_EXTRACTOR_GO_ROOT/tools/baseline-config-empty.json
6+
cat "$CODEQL_EXTRACTOR_GO_ROOT/tools/baseline-config-empty.json"
77
fi

0 commit comments

Comments
 (0)