diff options
author | Erich Eckner <git@eckner.net> | 2017-09-04 19:29:59 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-04 19:29:59 +0200 |
commit | 94f8a304386294d5940e9cd18195ff695034cce7 (patch) | |
tree | d2d29fb32e1f701204514ed4ccbde07f91904475 | |
parent | c30c09c1a596f23f17873cc68f44eca981d9b7ba (diff) | |
download | sourceMirror-94f8a304386294d5940e9cd18195ff695034cce7.tar.xz |
mirror.php: use curl and wget
-rw-r--r-- | mirror.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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."\"" ); } |