Skip to content

Commit

Permalink
Cheng kevin/fix find sampleapp version (#35)
Browse files Browse the repository at this point in the history
adding quotes
  • Loading branch information
cheng-kevin authored Jul 2, 2021
1 parent 84b1dfa commit 9a4d850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion robomaker-sample-app-ci/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ function getSampleAppVersion() {
try {
yield exec.exec("bash", [
"-c",
"find ../robot_ws -name package.xml -not -path ../robot_ws/src/deps/* -exec grep -Po '(?<=<version>)[^\\s<>]*(?=</version>)' {} +"
"find ../robot_ws -name package.xml -not -path '../robot_ws/src/deps/*' -exec grep -Po '(?<=<version>)[^\\s<>]*(?=</version>)' {} +"
], getWorkingDirExecOptions(grepAfter));
version = grepAfter.stdout.trim();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function getSampleAppVersion() : Promise<string> {
try {
await exec.exec("bash", [
"-c",
"find ../robot_ws -name package.xml -not -path ../robot_ws/src/deps/* -exec grep -Po '(?<=<version>)[^\\s<>]*(?=</version>)' {} +"],
"find ../robot_ws -name package.xml -not -path '../robot_ws/src/deps/*' -exec grep -Po '(?<=<version>)[^\\s<>]*(?=</version>)' {} +"],
getWorkingDirExecOptions(grepAfter));
version = grepAfter.stdout.trim();
} catch(error) {
Expand Down Expand Up @@ -187,4 +187,4 @@ async function run() {
core.setOutput('sample-app-version', SAMPLE_APP_VERSION);
}

run();
run();

0 comments on commit 9a4d850

Please sign in to comment.