Skip to content

Commit

Permalink
seen: mark tv episodes etc as seen
Browse files Browse the repository at this point in the history
  • Loading branch information
trapd00r committed Mar 21, 2012
1 parent 8e37ba9 commit deee7ac
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions seen
@@ -0,0 +1,15 @@
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';

for my $f(@ARGV) {
if(-f $f) {
chmod(02740, $f) or warn "chmod: $!\n";
}
elsif(-d $f) {
chmod(01700, $f) or warn "chmod: $!\n";
}
else {
warn "E: $_ is neither a file or a directory\n";
}
}

0 comments on commit deee7ac

Please sign in to comment.