bake: check for empty source

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-03-27 17:52:54 +02:00
parent 2d105f7337
commit 2d1ce9a223
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7

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;