Skip to content

Commit

Permalink
Merge remote-tracking branch 'memphinet/no-cert-check' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	lib/App/perlbrew.pm
  • Loading branch information
gugod committed Jun 7, 2014
2 parents 6537d31 + 3d971cd commit 084c4ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions lib/App/perlbrew.pm
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,20 @@ sub files_are_the_same {
my %commands = (
curl => {
test => '--version >/dev/null 2>&1',
get => '--silent --location --fail -o - {url}',
download => '--silent --location --fail -o {output} {url}',
get => '--insecure --silent --location --fail -o - {url}',
download => '--insecure --silent --location --fail -o {output} {url}',
order => 1,
},
wget => {
test => '--version >/dev/null 2>&1',
get => '--quiet -O - {url}',
download => '--quiet -O {output} {url}',
get => '--no-check-certificate --quiet -O - {url}',
download => '--no-check-certificate --quiet -O {output} {url}',
order => 2,
},
fetch => {
test => '--version >/dev/null 2>&1',
get => '-o - {url}',
download => '{url}',
get => '--no-verify-peer -o - {url}',
download => '--no-verify-peer {url}',
order => 3,
}
);
Expand Down
6 changes: 3 additions & 3 deletions perlbrew-install
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ LOCALINSTALLER="perlbrew-$$"

echo
if type curl >/dev/null 2>&1; then
PERLBREWDOWNLOAD="curl -f -sS -Lo $LOCALINSTALLER $PERLBREWURL"
PERLBREWDOWNLOAD="curl -f -k -sS -Lo $LOCALINSTALLER $PERLBREWURL"
elif type fetch >/dev/null 2>&1; then
PERLBREWDOWNLOAD="fetch -o $LOCALINSTALLER $PERLBREWURL"
PERLBREWDOWNLOAD="fetch --no-verify-peer -o $LOCALINSTALLER $PERLBREWURL"
elif type wget >/dev/null 2>&1; then
PERLBREWDOWNLOAD="wget -nv -O $LOCALINSTALLER $PERLBREWURL"
PERLBREWDOWNLOAD="wget -nv --no-check-certificate -O $LOCALINSTALLER $PERLBREWURL"
else
echo "Need wget or curl to use $0"
exit 1
Expand Down

0 comments on commit 084c4ad

Please sign in to comment.