fix: handle release script inherit output
This commit is contained in:
parent
b4f4370041
commit
26e5a01530
@ -26,7 +26,8 @@ const tag = `v${version}`;
|
|||||||
function run(cmd, opts = {}) {
|
function run(cmd, opts = {}) {
|
||||||
console.log(` $ ${cmd}`);
|
console.log(` $ ${cmd}`);
|
||||||
if (dryRun && !opts.allowDry) { console.log(' [dry-run] skipped'); return ''; }
|
if (dryRun && !opts.allowDry) { console.log(' [dry-run] skipped'); return ''; }
|
||||||
return execSync(cmd, { cwd: ROOT, encoding: 'utf-8', stdio: opts.stdio || 'pipe' }).trim();
|
const output = execSync(cmd, { cwd: ROOT, encoding: 'utf-8', stdio: opts.stdio || 'pipe' });
|
||||||
|
return typeof output === 'string' ? output.trim() : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
function resolveGiteaRemote() {
|
function resolveGiteaRemote() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user