summaryrefslogtreecommitdiffstats
path: root/ship
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-01-14 01:50:20 +0100
committermakefu <github@syntax-fehler.de>2014-01-14 01:50:20 +0100
commit3271b31b1db806ec8e802c4f9e368fab0e855722 (patch)
tree0221d14d863149195ee3e80fb6b19a63d7cccd85 /ship
parentd0bad095de81409b3b14cc2663d976d87d0d1d6d (diff)
ship: make internet function more resilient
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