summaryrefslogtreecommitdiffstats
path: root/ship
diff options
context:
space:
mode:
Diffstat (limited to 'ship')
-rw-r--r--ship/lib/network8
1 files changed, 4 insertions, 4 deletions
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