(command, workingDirectory = '.', logCommand = true)
| 9 | const unzipper = require('unzipper'); |
| 10 | |
| 11 | function exec(command, workingDirectory = '.', logCommand = true) { |
| 12 | if (logCommand) { |
| 13 | log(command); |
| 14 | } |
| 15 | |
| 16 | if (shelljs.exec(command, { fatal: true, cwd: workingDirectory }).code) { |
| 17 | throw `'${command}' finished with non-zero exit code.`; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | function checkDirectory(actualList, expectedList, directoryName) { |
| 22 | const extras = actualList.filter(path => !expectedList.includes(path)); |
no outgoing calls
no test coverage detected