Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove query params from chef_package_url #339

Merged
merged 1 commit into from
Mar 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ChefExtensionHandler/bin/chef-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ chef_install_from_script(){
url_check="$(curl -Is $chef_package_url | head -1 | grep 404)"
if [ -z $(echo $url_check | xargs) ]; then
echo "Downloading chef client package from $chef_package_url"
filetype=`echo $chef_package_url | sed -e 's/^.*\.//'`
filetype=`echo $chef_package_url | sed -e 's/^.*\.//' | sed -e 's/?.*//'`
chef_downloaded_package="/tmp/chef-client.$filetype"
curl_check $platform
curl -L -o $chef_downloaded_package $chef_package_url
Expand Down Expand Up @@ -124,4 +124,4 @@ if test "$azure_chef_extn_gem" = "azure-chef-extension" ; then
else
# install azure chef extension gem
install_chef_extension_gem "$chef_extension_root/gems/*.gem"
fi
fi