Skip to content

Commit

Permalink
Better output when fail to fetch kubebuilder-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
detiber committed Mar 7, 2019
1 parent 71d559a commit 46b405e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/fetch_ext_bins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ function fetch_tools {
kb_tools_archive_path="$tmp_root/$kb_tools_archive_name"
if [ ! -f $kb_tools_archive_path ]; then
curl -fsL ${kb_tools_download_url} -o "$kb_tools_archive_path"
if [ "%?" -ne 0 ]; then
echo "Failed to download kubebuilder-tools"
return 1
fi
fi
tar -zvxf "$kb_tools_archive_path" -C "$tmp_root/"
}
Expand Down

0 comments on commit 46b405e

Please sign in to comment.