File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
124124else
125125 # install azure chef extension gem
126126 install_chef_extension_gem " $chef_extension_root /gems/*.gem"
127- fi
127+ fi
You can’t perform that action at this time.
0 commit comments