Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #351 from robacarp/master
Browse files Browse the repository at this point in the history
explicitly execute bash script in bash
  • Loading branch information
matschaffer committed Feb 26, 2014
2 parents 0ac1439 + 9131f46 commit 511c973
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/knife-solo/bootstraps.rb
Expand Up @@ -62,11 +62,13 @@ def gem_packages

def http_client_get_url(url, file)
stream_command <<-BASH
if command -v curl >/dev/null 2>&1; then
curl -L -o #{file} #{url}
else
wget -O #{file} #{url}
fi
/bin/sh -c " \
if command -v curl >/dev/null 2>&1; then \
curl -L -o '#{file}' '#{url}'; \
else \
wget -O '#{file}' '#{url}'; \
fi; \
"
BASH
end

Expand Down

0 comments on commit 511c973

Please sign in to comment.