summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-04 19:29:59 +0200
committerErich Eckner <git@eckner.net>2017-09-04 19:29:59 +0200
commit94f8a304386294d5940e9cd18195ff695034cce7 (patch)
treed2d29fb32e1f701204514ed4ccbde07f91904475
parentc30c09c1a596f23f17873cc68f44eca981d9b7ba (diff)
downloadsourceMirror-94f8a304386294d5940e9cd18195ff695034cce7.tar.xz
mirror.php: use curl and wget
-rw-r--r--mirror.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mirror.php b/mirror.php
index 09172bd..8afc56a 100644
--- a/mirror.php
+++ b/mirror.php
@@ -56,7 +56,10 @@
if (! file_exists($pfad)) {
passthru(
"mkdir -p '".dirname($pfad)."'; ".
- "wget -O - '".$quelle."' | ". // oder curl!
+ "( ".
+ "curl -Ls '".$quelle."' || ".
+ "wget -O - '".$quelle."'; ".
+ ") | ". // oder curl!
"tee \"".$pfad."\""
);
}