diff --git a/scripts/generateLayerOverview.ts b/scripts/generateLayerOverview.ts index d59b292cab..0cbcfa3161 100644 --- a/scripts/generateLayerOverview.ts +++ b/scripts/generateLayerOverview.ts @@ -64,7 +64,7 @@ function validateLayer(layerJson: LayerConfigJson, context?: string): string[] { const remoteImages = images.filter(img => img.indexOf("http") == 0) for (const remoteImage of remoteImages) { errorCount.push("Found a remote image: " + remoteImage + " in layer " + layer.id + ", please download it.") - const path = remoteImage.substring(remoteImage.lastIndexOf("/") + ) + const path = remoteImage.substring(remoteImage.lastIndexOf("/") + 1) linuxHints.push("wget "+remoteImage) linuxHints.push(`echo '{"path":"${path}", "license": "", "authors": [ "