mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 13:08:17 +00:00
Use quoted matching, do not use exec's args array
This commit is contained in:
parent
858da7b39c
commit
596215aec5
2 changed files with 4 additions and 4 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
|
@ -1035,7 +1035,7 @@ const cmd = async (command, ...args) => {
|
|||
stderr: (data) => { errors += data.toString(); }
|
||||
};
|
||||
|
||||
await exec.exec(command, args, options)
|
||||
await exec.exec(command + args.map(a => ` ${a}`).join(' '), [], options)
|
||||
.catch(err => { core.info(`The command '${command} ${args.join(' ')}' failed: ${err}`); });
|
||||
|
||||
if (errors !== '') {
|
||||
|
|
@ -1121,7 +1121,7 @@ async function run() {
|
|||
`describe`,
|
||||
`--tags`,
|
||||
`--abbrev=0`,
|
||||
`--match=${releasePattern}`,
|
||||
`--match="${releasePattern}"`,
|
||||
`${branch}~1`
|
||||
)).trim();
|
||||
}
|
||||
|
|
|
|||
4
index.js
4
index.js
|
|
@ -14,7 +14,7 @@ const cmd = async (command, ...args) => {
|
|||
stderr: (data) => { errors += data.toString(); }
|
||||
};
|
||||
|
||||
await exec.exec(command, args, options)
|
||||
await exec.exec(command + args.map(a => ` ${a}`).join(' '), [], options)
|
||||
.catch(err => { core.info(`The command '${command} ${args.join(' ')}' failed: ${err}`); });
|
||||
|
||||
if (errors !== '') {
|
||||
|
|
@ -100,7 +100,7 @@ async function run() {
|
|||
`describe`,
|
||||
`--tags`,
|
||||
`--abbrev=0`,
|
||||
`--match=${releasePattern}`,
|
||||
`--match="${releasePattern}"`,
|
||||
`${branch}~1`
|
||||
)).trim();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue