We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b3d86f commit 0d93ab9Copy full SHA for 0d93ab9
bin/jib.sh
@@ -128,6 +128,15 @@ install_jib() {
128
exit 1
129
fi
130
131
+ # Want to check the filetype using file, to see if we got served a HTML error page.
132
+ # 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
134
+ if [ $? -ne 0 ]; then
135
+ echo "Warning: ${installed_jib_script}.gz is not a gzip file."
136
+ echo "If you are behind a proxy you may need to configure exceptions using no_proxy."
137
+ echo "The download URL was: ${jib_url}"
138
+ exit 1
139
+ fi
140
echo "Extracting JIB bootstrap script"
141
rm -f "${installed_jib_script}"
142
gunzip "${installed_jib_script}.gz"
0 commit comments