Skip to content

Commit

Permalink
fix(addons-v5): Use os.tmpdir() rather than /tmp for cross-platform s…
Browse files Browse the repository at this point in the history
…upport - fixes #1506 (#1518)
  • Loading branch information
KevinBrolly committed May 15, 2020
1 parent 4cba369 commit 23f45d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/addons-v5/commands/addons/open.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
let cli = require('heroku-cli-util')
let co = require('co')
let fs = require('fs')
let os = require('os')
let path = require('path')

function open (url) {
cli.log(`Opening ${cli.color.cyan(url)}...`)
return cli.open(url)
}

const ssoPath = '/tmp/heroku-sso.html'
const ssoPath = path.join(os.tmpdir(), 'heroku-sso.html')

function writeSudoTemplate (ctx, sso, path) {
return new Promise(function (resolve, reject) {
Expand Down

0 comments on commit 23f45d9

Please sign in to comment.