From 983120102cb7b2bb39294589318fa4ea4defa580 Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Mon, 12 Aug 2013 17:44:42 -0400 Subject: [PATCH] Hold PhantomJS version at 1.9.0-1. And don't attempt any chmod magic, either. --- grunt/tasks/phantom.js | 15 ++++++--------- package.json | 2 +- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/grunt/tasks/phantom.js b/grunt/tasks/phantom.js index 740ea27aaa..d5c66eb258 100644 --- a/grunt/tasks/phantom.js +++ b/grunt/tasks/phantom.js @@ -1,7 +1,6 @@ 'use strict'; var assert = require("assert"); -var fs = require("fs"); var grunt = require("grunt"); var spawn = grunt.util.spawn; var semver = require("semver"); @@ -59,13 +58,11 @@ module.exports = function() { var config = this.data; var done = this.async(); - fs.chmod(phantomjs, 755, function(err) { - spawn({ - cmd: phantomjs, - args: ["--version"] - }, function(error, result, code) { - checkVersion(error, result, code); - run(config, done); - }); + spawn({ + cmd: phantomjs, + args: ["--version"] + }, function(error, result, code) { + checkVersion(error, result, code); + run(config, done); }); }; diff --git a/package.json b/package.json index 51540c7d53..f11cfc6d8d 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "grunt-contrib-copy": "~0.4.1", "grunt-contrib-jshint": "~0.6.0", "optimist": "~0.4.0", - "phantomjs": ">= 1.9.0", + "phantomjs": "1.9.0-1", "semver": "~2.0.0", "uglify-js": "~2.3.6", "grunt-contrib-clean": "~0.4.1",