Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Quote bash args.
Hi devs, there's a bug in the detect-sh.sh specifically,
https://github.com/synopsys-sig/synopsys-detect-scripts/blob/e9a657b7db245c2f5996ec93ab5b84e078285102/src/main/resources/detect-sh.sh#L76
where quoted parameters passed in from bash (shell) will lose their grouping.
E.g.
bash detect.sh --blackduck.url='https://a.b.c' --detect.project.name='foo' --detect.project.version.name="bar" --detect.source.path=./ --detect.maven.build.command="--settings=./settings.xml -DskipTests=true -Dmaven.repo.local=./.repository"
produces:
Detect Version: 6.8.0
2021-03-23 23:35:36 INFO [main] ---
2021-03-23 23:35:36 INFO [main] --- Current property values:
2021-03-23 23:35:36 INFO [main] --- --property = value [notes]
2021-03-23 23:35:36 INFO [main] --- ------------------------------------------------------------
2021-03-23 23:35:36 INFO [main] --- blackduck.url = https://a.b.c [cmd]
2021-03-23 23:35:36 INFO [main] --- detect.maven.build.command = --settings=./settings.xml [cmd]
2021-03-23 23:35:36 INFO [main] --- detect.project.name = foo [cmd]
2021-03-23 23:35:36 INFO [main] --- detect.project.version.name = bar [cmd]
2021-03-23 23:35:36 INFO [main] --- detect.source.path = ./ [cmd]
2021-03-23 23:35:36 INFO [main] --- ------------------------------------------------------------
should instead be:
Detect Version: 6.8.0
2021-03-23 23:35:07 INFO [main] ---
2021-03-23 23:35:07 INFO [main] --- Current property values:
2021-03-23 23:35:07 INFO [main] --- --property = value [notes]
2021-03-23 23:35:07 INFO [main] --- ------------------------------------------------------------
2021-03-23 23:35:07 INFO [main] --- blackduck.url = https://a.b.c [cmd]
2021-03-23 23:35:07 INFO [main] --- detect.maven.build.command = --settings=./settings.xml -DskipTests=true -Dmaven.repo.local=./.repository [cmd]
2021-03-23 23:35:07 INFO [main] --- detect.project.name = foo [cmd]
2021-03-23 23:35:07 INFO [main] --- detect.project.version.name = bar [cmd]
2021-03-23 23:35:07 INFO [main] --- detect.source.path = ./ [cmd]
2021-03-23 23:35:07 INFO [main] --- ------------------------------------------------------------
Thanks.