Merge pull request #83 from crazy-max/bake-empty-source

bake: check for empty source
This commit is contained in:
CrazyMax 2023-03-28 08:50:32 +02:00 committed by GitHub
commit e185293749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,10 @@ export class Bake {
let remoteDef;
const files: Array<string> = [];
if (sources) {
for (const source of sources) {
for (const source of sources.map(v => v.trim())) {
if (source.length == 0) {
continue;
}
if (!Util.isValidRef(source)) {
files.push(source);
continue;