Merge pull request #26127 from gabesoft/upstream-master

Fixed meteor Future is not defined error

authored by Charles Strahan and committed by GitHub 47868cbf 1d7aefd5

+2 -1
+2 -1
pkgs/servers/meteor/main.patch
··· 2 index 84f94bc..4fbda17 100644 3 --- a/tools/cli/main.js 4 +++ b/tools/cli/main.js 5 - @@ -484,6 +484,44 @@ var springboard = function (rel, options) { 6 process.exit(ret.wait()); 7 } 8 ··· 10 + // patch shebang: 11 + var fs = require('fs'); 12 + var path = require("path") 13 + var srcOld = fs.readFileSync(executable, 'utf8'); 14 + srcNew = srcOld.replace(/^#!\/bin\/bash/, '#!/bin/sh'); 15 + if (srcOld !== srcNew) {
··· 2 index 84f94bc..4fbda17 100644 3 --- a/tools/cli/main.js 4 +++ b/tools/cli/main.js 5 + @@ -484,6 +484,45 @@ var springboard = function (rel, options) { 6 process.exit(ret.wait()); 7 } 8 ··· 10 + // patch shebang: 11 + var fs = require('fs'); 12 + var path = require("path") 13 + + var Future = require("fibers/future") 14 + var srcOld = fs.readFileSync(executable, 'utf8'); 15 + srcNew = srcOld.replace(/^#!\/bin\/bash/, '#!/bin/sh'); 16 + if (srcOld !== srcNew) {