From f97abc0ca55bb826820344614e1951caede45be7 Mon Sep 17 00:00:00 2001 From: Alex Checca Date: Tue, 10 Nov 2015 23:37:13 -0500 Subject: more TRAVIS CI fixes --- scripts/xdcc_autoget.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/xdcc_autoget.pl b/scripts/xdcc_autoget.pl index 323f6d5..c097b1e 100644 --- a/scripts/xdcc_autoget.pl +++ b/scripts/xdcc_autoget.pl @@ -500,7 +500,7 @@ sub ag_parseadd #parses add arguments for storage print FILE $arg . "\n"; #print to file } close(FILE); - copy($file, "/tmp/temp") or croak "COPY FAILED"; #copy to temp file so that duplicate lines [searches/bots] can be removed + copy($file, "/tmp/temp"); #copy to temp file so that duplicate lines [searches/bots] can be removed unlink "$file"; open(TEMP, "<", "/tmp/temp"); open(FILE, ">", $file); @@ -543,8 +543,8 @@ sub ag_parserem #parses remove arguments for deletion from file close(TEMP); } close(TEMP2); - copy("/tmp/temp2", $file) or croak "COPY FAILED"; #rewrite old file - copy($file, "/tmp/temp") or croak "COPY FAILED"; + copy("/tmp/temp2", $file); #rewrite old file + copy($file, "/tmp/temp"); unlink "$file"; open(TEMP, "<", "/tmp/temp"); open(SEARCHES, ">", $file); -- cgit v1.2.3