From 3c68339ca91a887f1bd835f9ca580a174b96677e Mon Sep 17 00:00:00 2001 From: Angel Misevski Date: Tue, 26 Nov 2019 10:19:42 -0500 Subject: [PATCH] Remove query parameters from filename when saving devfile icon Signed-off-by: Angel Misevski --- build/scripts/cache_images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/scripts/cache_images.sh b/build/scripts/cache_images.sh index 87549b330..58136784f 100755 --- a/build/scripts/cache_images.sh +++ b/build/scripts/cache_images.sh @@ -40,7 +40,7 @@ while read -r image; do image_dir="${RESOURCES_DIR%/}/${image_dir%/*}" mkdir -p "$image_dir" - cached_image="${image_dir%/}/${filename}" + cached_image="${image_dir%/}/${filename%\?*}" mv "$file" "$cached_image" echo " Downloaded image $image to $cached_image"