diff --git a/dist/index.js b/dist/index.js index dd55e93a..51b0ba84 100644 --- a/dist/index.js +++ b/dist/index.js @@ -354,20 +354,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; -}; Object.defineProperty(exports, "__esModule", { value: true }); -const os = __importStar(__webpack_require__(87)); -const events = __importStar(__webpack_require__(614)); -const child = __importStar(__webpack_require__(129)); -const path = __importStar(__webpack_require__(622)); -const io = __importStar(__webpack_require__(1)); -const ioUtil = __importStar(__webpack_require__(672)); +const os = __webpack_require__(87); +const events = __webpack_require__(614); +const child = __webpack_require__(129); +const path = __webpack_require__(622); +const io = __webpack_require__(1); +const ioUtil = __webpack_require__(672); /* eslint-disable @typescript-eslint/unbound-method */ const IS_WINDOWS = process.platform === 'win32'; /* @@ -811,12 +804,6 @@ class ToolRunner extends events.EventEmitter { resolve(exitCode); } }); - if (this.options.input) { - if (!cp.stdin) { - throw new Error('child process missing stdin'); - } - cp.stdin.end(this.options.input); - } }); }); } @@ -2759,15 +2746,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; -}; Object.defineProperty(exports, "__esModule", { value: true }); -const tr = __importStar(__webpack_require__(9)); +const tr = __webpack_require__(9); /** * Exec a command. * Output will be streamed to the live console. diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 3c32dbd9..3c95ad63 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -177,7 +177,7 @@ tick="✓" cross="✗" version=$1 tool_path_dir="/usr/local/bin" -existing_version=$(php-config --version | cut -c 1-3) +existing_version=$(php-config --version 2>/dev/null | cut -c 1-3) # Setup PHP step_log "Setup PHP" diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 69631721..1aac5358 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -241,7 +241,7 @@ version=$1 debconf_fix="DEBIAN_FRONTEND=noninteractive" apt_install="sudo $debconf_fix apt-fast install -y" tool_path_dir="/usr/local/bin" -existing_version=$(php-config --version | cut -c 1-3) +existing_version=$(php-config --version 2>/dev/null | cut -c 1-3) # Setup PHP step_log "Setup PHP"