Changeset 1030
- Timestamp:
- Mar 26, 2009, 2:56:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
locker/sbin/propose-update
r1025 r1030 50 50 my @files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin`; 51 51 if (@files <= 1) { 52 `athrun scripts gfind . -mindepth 2 -maxdepth 2 -exec mv \{} .\;`;52 `athrun scripts gfind . -mindepth 2 -maxdepth 2 -exec mv {} . \\;`; 53 53 rmdir($files[0]); 54 54 } … … 57 57 } 58 58 59 my @oldfiles = sort { $a->[1] cmp $b->[1] } map { chomp; s|$olddir\/?||g; [split(' ', $_, 2)] } `athrun scripts gfind $olddir -type f | xargs -I{} md5sum \{}`;59 my @oldfiles = sort { $a->[1] cmp $b->[1] } map { chomp; s|$olddir\/?||g; [split(' ', $_, 2)] } `athrun scripts gfind $olddir -type f -exec md5sum {} \\;`; 60 60 #print Dumper(\@oldfiles); 61 my @newfiles = sort { $a->[1] cmp $b->[1] } map { chomp; s|$newdir\/?||g; [split(' ', $_, 2)] } `athrun scripts gfind $newdir -type f | xargs -I{} md5sum \{}`;61 my @newfiles = sort { $a->[1] cmp $b->[1] } map { chomp; s|$newdir\/?||g; [split(' ', $_, 2)] } `athrun scripts gfind $newdir -type f -exec md5sum {} \\;`; 62 62 #print Dumper(\@newfiles); 63 63
Note: See TracChangeset
for help on using the changeset viewer.