Skip to content

Commit

Permalink
switch around auth strategies (fix appium#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Oct 24, 2013
1 parent 1ae8581 commit 16f4254
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grunt-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 16f4254

Please sign in to comment.