From 9e06bf695ec338f0ce1259be6b8fbb994e85f7bc Mon Sep 17 00:00:00 2001 From: Jonathan Hedstrom Date: Mon, 28 Aug 2017 11:38:05 -0700 Subject: [PATCH] Use absolute path to HTML build directory. - Fixes #324 --- lib/drupal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/drupal.js b/lib/drupal.js index 2162b8ba..20a8ec6f 100644 --- a/lib/drupal.js +++ b/lib/drupal.js @@ -12,7 +12,7 @@ module.exports = function(grunt) { } // Using direct spawn functionality to capture stdout. - grunt.util.spawn({cmd: module.drushPath(), args: ['-r', grunt.config('config.buildPaths.html'), 'status', '--format=json']}, function(error, result, code) { + grunt.util.spawn({cmd: module.drushPath(), args: ['-r', path.resolve(grunt.config('config.buildPaths.html')), 'status', '--format=json']}, function(error, result, code) { var json = null; if (error) { grunt.log.writeln('drush status failed with code ' + code);