Skip to content

Commit 4e91682

Browse files
author
Vasundhara Jagdale
authored
Merge pull request #339 from gscho/strip-query-params
Remove query params from chef_package_url
2 parents 54ed702 + 0813977 commit 4e91682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ChefExtensionHandler/bin/chef-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ chef_install_from_script(){
9696
url_check="$(curl -Is $chef_package_url | head -1 | grep 404)"
9797
if [ -z $(echo $url_check | xargs) ]; then
9898
echo "Downloading chef client package from $chef_package_url"
99-
filetype=`echo $chef_package_url | sed -e 's/^.*\.//'`
99+
filetype=`echo $chef_package_url | sed -e 's/^.*\.//' | sed -e 's/?.*//'`
100100
chef_downloaded_package="/tmp/chef-client.$filetype"
101101
curl_check $platform
102102
curl -L -o $chef_downloaded_package $chef_package_url
@@ -124,4 +124,4 @@ if test "$azure_chef_extn_gem" = "azure-chef-extension" ; then
124124
else
125125
# install azure chef extension gem
126126
install_chef_extension_gem "$chef_extension_root/gems/*.gem"
127-
fi
127+
fi

0 commit comments

Comments
 (0)