summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/url.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/url.c b/src/url.c
index 8502b28..79f66ca 100644
--- a/src/url.c
+++ b/src/url.c
@@ -91,6 +91,7 @@ int apk_url_download(const char *url, const char *file)
if (pid == 0) {
setsid();
dup2(open("/dev/null", O_RDONLY), STDIN_FILENO);
+ unlink(file);
execlp("wget", "wget", "-q", "-O", file, url, NULL);
exit(0);
}