Skip to content

Commit

Permalink
Merge pull request #2769 from prisma/feat/cli-introduce-hide-update-m…
Browse files Browse the repository at this point in the history
…essage
  • Loading branch information
timsuchanek committed Jun 17, 2020
2 parents 60b9ec6 + 93afba4 commit f3c9c86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/packages/cli/src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ async function main(): Promise<number> {
version: packageJson.version,
disable: ci.isCI,
})
// if the result is cached and we're outdated, show this prompte
if (checkResult.status === 'ok' && checkResult.data.outdated) {
// if the result is cached and we're outdated, show this prompt
const shouldHide = process.env.PRISMA_HIDE_UPDATE_MESSAGE
if (checkResult.status === 'ok' && checkResult.data.outdated && !shouldHide) {
console.error(
drawBox({
height: 4,
Expand Down

0 comments on commit f3c9c86

Please sign in to comment.