Browse Source

Only log success messages when in TTY

This closes #579
master
Leo Lamprecht 8 years ago
parent
commit
207dd6f46b
  1. 5
      bin/now-deploy.js

5
bin/now-deploy.js

@ -537,12 +537,14 @@ async function sync({ token, config: { currentTeam, user } }) {
now.close()
// Show build logs
if (!quiet) {
if (deploymentType === 'static') {
console.log(`${chalk.cyan('> Deployment complete!')}`)
} else {
printLogs(now.host, token, currentTeam, user)
}
}
}
const plan = await planPromise
@ -621,12 +623,14 @@ async function sync({ token, config: { currentTeam, user } }) {
now.close()
// Show build logs
if (!quiet) {
if (deploymentType === 'static') {
console.log(`${chalk.cyan('> Deployment complete!')}`)
} else {
printLogs(now.host, token, currentTeam, user)
}
}
}
}
async function readMeta(path, deploymentName, deploymentType) {
@ -712,6 +716,7 @@ function printLogs(host, token, currentTeam, user) {
console.log(`> [debug] Removed temporary repo directory`)
}
}
process.exit(1)
})

Loading…
Cancel
Save