Skip to content

Commit

Permalink
8304134: jib bootstrapper fails to quote filename when checking downl…
Browse files Browse the repository at this point in the history
…oad filetype

Backport-of: 75168eaca3f665785519bb489073962a4972fdc0
  • Loading branch information
GoeLin committed Apr 20, 2023
1 parent e28b210 commit 2ccf28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/jib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

1 comment on commit 2ccf28e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.