Commits

Ethan McCreadie  committed 8669422

glue: Allow GLUE_BIN env to override glue binary location

  • Participants
  • Parent commits 520df9f

Comments (0)

Files changed (1)

File tasks/glue.js

         config = this.data,
         src = config.src,
         dest = config.dest,
-        opts = config.options;
+        opts = config.options,
+        glue = process.env.GLUE_BIN ? process.env.GLUE_BIN : 'glue';
     // Build the command
-    var cmd = ['glue', src];
+    var cmd = [glue, src];
     if(dest) cmd.push(dest);
     if(opts) cmd.push(opts);
     // grunt.log.debug(cmd.join(' '));