mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 06:25:03 -05:00
2b56e4c1bb
Add a postcheck section to verify unintended file creation. Remove needless <file> checks in verify section. Renumbering where appropriate.
16 lines
329 B
Perl
Executable File
16 lines
329 B
Perl
Executable File
#!/usr/bin/env perl
|
|
# Check that given arguments do not exist on filesystem.
|
|
my $code = 0;
|
|
if ($#ARGV < 0) {
|
|
print "Usage: $0 file1 [fileN]\n";
|
|
exit 2;
|
|
}
|
|
while (@ARGV) {
|
|
my $fname = shift @ARGV;
|
|
if (-e $fname) {
|
|
print "Found '$fname' when not supposed to exist.\n";
|
|
$code = 1;
|
|
}
|
|
}
|
|
exit $code;
|