From 3271b31b1db806ec8e802c4f9e368fab0e855722 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 14 Jan 2014 01:50:20 +0100 Subject: ship: make internet function more resilient --- ship/lib/network | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ship/lib/network') diff --git a/ship/lib/network b/ship/lib/network index 68e29301..974fb282 100644 --- a/ship/lib/network +++ b/ship/lib/network @@ -7,10 +7,10 @@ which_get_loader(){ warn "Please install curl or wget" return 1 else - echo "wget -O-" + echo "wget -q -O-" fi else - echo "curl -s" + echo "curl -L -s" fi return 0 } @@ -24,13 +24,13 @@ which_head_loader(){ echo "wget -O- --spider -S -q" fi else - echo "curl -I -s" + echo "curl -L -I -s" fi return 0 } http_get(){ - eval "$(which_get_loader)" "${1?please provide url}" 2>&1 + eval "$(which_get_loader)" "${1?please provide url}" } http_head(){ eval "$(which_head_loader)" "${1?please provide url}" 2>&1 -- cgit v1.2.3