From 429e1174b69f70ba161f24f898d5f475d656ce47 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 19 Sep 2020 18:29:53 +0200 Subject: Dumb update --- .local/bin/setwp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.local') diff --git a/.local/bin/setwp b/.local/bin/setwp index 75f9203..97d7aa9 100755 --- a/.local/bin/setwp +++ b/.local/bin/setwp @@ -32,7 +32,8 @@ sub choose_and_copy my $i; $rand = int(rand(@files - 1)); - copy($files[$rand], WP_FILE); + unlink(WP_FILE); + copy(WP_POOL . $files[$rand], WP_FILE); return; } -- cgit v1.2.3