(script: string, env: IBootloaderInfo)
| 233 | } |
| 234 | |
| 235 | function autoAttachSmartPatternMatches(script: string, env: IBootloaderInfo) { |
| 236 | if (!env.aaPatterns) { |
| 237 | return false; |
| 238 | } |
| 239 | |
| 240 | const r = match( |
| 241 | [script.replace(/\\/g, '/')], |
| 242 | [...env.aaPatterns.map(p => p.replace(knownToolToken, knownToolGlob))], |
| 243 | { dot: true, nocase: true }, |
| 244 | ); |
| 245 | |
| 246 | return r.length > 0; |
| 247 | } |
| 248 | |
| 249 | function isPipeAvailable(pipe?: string): pipe is string { |
| 250 | if (!pipe) { |
no test coverage detected