Skip to content

Commit 9a4d850

Browse files
authored
Cheng kevin/fix find sampleapp version (#35)
adding quotes
1 parent 84b1dfa commit 9a4d850

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

robomaker-sample-app-ci/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ function getSampleAppVersion() {
786786
try {
787787
yield exec.exec("bash", [
788788
"-c",
789-
"find ../robot_ws -name package.xml -not -path ../robot_ws/src/deps/* -exec grep -Po '(?<=<version>)[^\\s<>]*(?=</version>)' {} +"
789+
"find ../robot_ws -name package.xml -not -path '../robot_ws/src/deps/*' -exec grep -Po '(?<=<version>)[^\\s<>]*(?=</version>)' {} +"
790790
], getWorkingDirExecOptions(grepAfter));
791791
version = grepAfter.stdout.trim();
792792
}

robomaker-sample-app-ci/src/aws-robomaker-sample-application-ci.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function getSampleAppVersion() : Promise<string> {
6868
try {
6969
await exec.exec("bash", [
7070
"-c",
71-
"find ../robot_ws -name package.xml -not -path ../robot_ws/src/deps/* -exec grep -Po '(?<=<version>)[^\\s<>]*(?=</version>)' {} +"],
71+
"find ../robot_ws -name package.xml -not -path '../robot_ws/src/deps/*' -exec grep -Po '(?<=<version>)[^\\s<>]*(?=</version>)' {} +"],
7272
getWorkingDirExecOptions(grepAfter));
7373
version = grepAfter.stdout.trim();
7474
} catch(error) {
@@ -187,4 +187,4 @@ async function run() {
187187
core.setOutput('sample-app-version', SAMPLE_APP_VERSION);
188188
}
189189

190-
run();
190+
run();

0 commit comments

Comments
 (0)