Changeset 16232 for trunk/Nebulous/bin/neb-touch
- Timestamp:
- Jan 25, 2008, 10:54:04 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/bin/neb-touch (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/bin/neb-touch
r16225 r16232 3 3 # Copyright (C) 2007-2008 Joshua Hoblitt 4 4 # 5 # $Id: neb-touch,v 1. 6 2008-01-25 02:44:49jhoblitt Exp $5 # $Id: neb-touch,v 1.7 2008-01-25 20:54:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 40 40 unless defined $neb; 41 41 42 43 unless ($neb->find_objects($file)) { 44 $neb->create($file, $volume) 45 or die "failed to create Nebulous key $file"; 42 unless (scalar @{$neb->find_objects($file)}) { 43 if (defined $volume) { 44 $neb->create($file, $volume) 45 or die "failed to create Nebulous key $file"; 46 } else { 47 $neb->create($file) 48 or die "failed to create Nebulous key $file"; 49 } 46 50 } 47 51
Note:
See TracChangeset
for help on using the changeset viewer.
