Skip to content

Commit

Permalink
Fixed deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Feb 15, 2021
1 parent 5b50dfa commit c2f553e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ async function main() {
}
main();

const exec = async(...args) => execa(...args).stdout.pipe(process.stdout);
const exec = async(...args) => {
const subprocess = execa(...args);
subprocess.stdout.pipe(process.stdout);

await subprocess;
};

const syncRepo = async() => {
return exec('sh', ['-c', `until git pull --rebase && git push; do echo '\''Retrying...'\''; done`]);
Expand Down

0 comments on commit c2f553e

Please sign in to comment.