(filePath)
| 315 | } |
| 316 | |
| 317 | function isExecutable(filePath) { |
| 318 | try { |
| 319 | fs.accessSync(filePath, fs.constants.X_OK); |
| 320 | return true; |
| 321 | } catch { |
| 322 | return false; |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | function commandOutput(command, args) { |
| 327 | return run(command, args).stdout.trim(); |