From 16f42546c9a7d08ceca3c251c1f1745abbf0658c Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Thu, 24 Oct 2013 10:04:38 -0700 Subject: [PATCH] switch around auth strategies (fix #1346) --- grunt-helpers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grunt-helpers.js b/grunt-helpers.js index b2817bf7a09..507dd8f7d6d 100644 --- a/grunt-helpers.js +++ b/grunt-helpers.js @@ -169,12 +169,12 @@ module.exports.setGitRev = function(grunt, rev, cb) { module.exports.authorize = function(grunt, cb) { // somewhat messily ported from penguinho's authorize.py - var authFile = '/etc/authorization'; + var authFile = '/System/Library/Security/authorization.plist'; try { fs.existsSync(authFile); } catch (e) { - // on Mavericks auth file is in a different place - authFile = '/System/Library/Security/authorization.plist'; + // on Mountain Lion auth is in a different place + authFile = '/etc/authorization'; } exec('DevToolsSecurity --enable', function(err, stdout, stderr) { if (err) throw err;