mirror of
https://github.com/ad-m/github-push-action.git
synced 2025-06-08 06:27:02 +09:00
13 lines
No EOL
328 B
JavaScript
13 lines
No EOL
328 B
JavaScript
const spawn = require('child_process').spawn;
|
|
|
|
const main = () => new Promise((resolve, reject) => {
|
|
const ssh = spawn('bash', ['start.sh'], { stdio: 'inherit' });
|
|
ssh.on('close', resolve);
|
|
ssh.on('error', reject);
|
|
});
|
|
|
|
main().catch(err => {
|
|
console.err(err);
|
|
console.err(err.stack);
|
|
process.exit(-1);
|
|
}) |