From: Alex Checca Date: Wed, 11 Nov 2015 04:37:13 +0000 (-0500) Subject: more TRAVIS CI fixes X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=f97abc0ca55bb826820344614e1951caede45be7;p=irssi-scripts.irssi.org.git more TRAVIS CI fixes --- 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);