summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mirror.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/mirror.php b/mirror.php
index 37c59c9..cfb6c90 100644
--- a/mirror.php
+++ b/mirror.php
@@ -54,19 +54,14 @@
fclose($al);
if (! file_exists($pfad)) {
- $inp = popen(
+ passthru(
"mkdir -p '".dirname($pfad)."'; ".
"wget -O - '".$quelle."' | ".
- "tee \"".$pfad."\"",
- "r");
- if (! $inp)
- die("kann wget nicht starten");
-
- fpassthru($inp);
- pclose($inp);
+ "tee \"".$pfad."\""
+ );
}
else {
- passthru('cat "'.$pfad.'"');
+ passthru("cat '".$pfad."'");
}
}