Changeset 1030 for locker/sbin


Ignore:
Timestamp:
Mar 26, 2009, 2:56:33 AM (14 years ago)
Author:
mitchb
Message:
Fix propose-update to a) work at all again, and b) work on all platforms
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/sbin/propose-update

    r1025 r1030  
    5050  my @files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin`;
    5151  if (@files <= 1) {
    52     `athrun scripts gfind . -mindepth 2 -maxdepth 2 -exec mv \{} . \;`;
     52    `athrun scripts gfind . -mindepth 2 -maxdepth 2 -exec mv {} . \\;`;
    5353    rmdir($files[0]);
    5454  }
     
    5757}
    5858
    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 \{}`;
     59my @oldfiles = sort { $a->[1] cmp $b->[1] } map { chomp; s|$olddir\/?||g; [split(' ', $_, 2)] } `athrun scripts gfind $olddir -type f -exec md5sum {} \\;`;
    6060#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 \{}`;
     61my @newfiles = sort { $a->[1] cmp $b->[1] } map { chomp; s|$newdir\/?||g; [split(' ', $_, 2)] } `athrun scripts gfind $newdir -type f -exec md5sum {} \\;`;
    6262#print Dumper(\@newfiles);
    6363
Note: See TracChangeset for help on using the changeset viewer.