fix: handle release script inherit output

This commit is contained in:
Administrator 2026-03-10 22:21:50 +01:00
parent b4f4370041
commit 26e5a01530

View File

@ -26,7 +26,8 @@ const tag = `v${version}`;
function run(cmd, opts = {}) {
console.log(` $ ${cmd}`);
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() {