From 2ccf28ed99d07eed108f5e7d881d616bdf864b5f Mon Sep 17 00:00:00 2001 From: Goetz Lindenmaier Date: Thu, 20 Apr 2023 08:03:57 +0000 Subject: [PATCH] 8304134: jib bootstrapper fails to quote filename when checking download filetype Backport-of: 75168eaca3f665785519bb489073962a4972fdc0 --- bin/jib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/jib.sh b/bin/jib.sh index 254f09ada1c..9f34cf9ab7b 100644 --- a/bin/jib.sh +++ b/bin/jib.sh @@ -130,7 +130,7 @@ install_jib() { fi # Want to check the filetype using file, to see if we got served a HTML error page. # This is sensitive to the filename containing a specific string, but good enough. - file ${installed_jib_script}.gz | grep "gzip compressed data" > /dev/null + file "${installed_jib_script}.gz" | grep "gzip compressed data" > /dev/null if [ $? -ne 0 ]; then echo "Warning: ${installed_jib_script}.gz is not a gzip file." echo "If you are behind a proxy you may need to configure exceptions using no_proxy."