Changeset 25121 for trunk/Nebulous/bin/neb-cull
- Timestamp:
- Aug 18, 2009, 5:02:45 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/bin/neb-cull (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/bin/neb-cull
r24996 r25121 16 16 use Pod::Usage qw( pod2usage ); 17 17 18 my ($ server, $volume, $one_only);18 my ($min_copies, $server, $volume, $one_only); 19 19 20 20 $server = $ENV{'NEB_SERVER'} unless $server; 21 21 22 22 GetOptions( 23 'min_copies|m=i'=> \$min_copies, 23 24 'server|s=s' => \$server, 24 25 'volume|v=s' => \$volume, … … 41 42 unless defined $neb; 42 43 44 $volume ||= "any"; 45 $min_copies ||= 2; 46 43 47 my @cull_args; 44 48 push @cull_args, $key; 45 if (defined $volume) { 46 push @cull_args, $volume; 47 } 49 push @cull_args, $volume; 48 50 49 51 if ($one_only) { … … 58 60 } 59 61 } else { 62 push @cull_args, $min_copies; 60 63 unless (defined $neb->cull(@cull_args)) { 61 64 die "failed to cull Nebulous key: $key - " . $neb->err;
Note:
See TracChangeset
for help on using the changeset viewer.
