From ad53768ac70f46c4431bc2e45e88aaee58ff71b7 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sun, 11 Apr 2021 03:08:29 +0200 Subject: [PATCH] Fix typo --- scripts/generateLayerOverview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": [ "