Skip to content

Commit e91072f

Browse files
committed
8304134: jib bootstrapper fails to quote filename when checking download filetype
Backport-of: 75168eaca3f665785519bb489073962a4972fdc0
1 parent 000134c commit e91072f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/jib.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ install_jib() {
130130
fi
131131
# Want to check the filetype using file, to see if we got served a HTML error page.
132132
# This is sensitive to the filename containing a specific string, but good enough.
133-
file ${installed_jib_script}.gz | grep "gzip compressed data" > /dev/null
133+
file "${installed_jib_script}.gz" | grep "gzip compressed data" > /dev/null
134134
if [ $? -ne 0 ]; then
135135
echo "Warning: ${installed_jib_script}.gz is not a gzip file."
136136
echo "If you are behind a proxy you may need to configure exceptions using no_proxy."

0 commit comments

Comments
 (0)