change output text & add mkdir
This commit is contained in:
parent
ec9e709607
commit
9bbc22af42
|
@ -15,7 +15,7 @@ cat "$oneline" >> dataset.txt;
|
|||
uuid=`cat "$oneline"`;
|
||||
if [ -e $uuid.txt ]
|
||||
then
|
||||
echo "do nothing! uuid重复?"
|
||||
echo "do nothing! uuid重复或后面有空格:$uuid"
|
||||
else
|
||||
find -L "${oneline%uuid.txt}" -exec du -b -s {} \; -exec ./dir_output.sh "{}" \; >$uuid.txt
|
||||
echo $uuid
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
print $dir."\n";
|
||||
$dir=$backup_dir.trim($duuid2[1]);
|
||||
@rrmdir($newdir);
|
||||
mkdir($newdir,0700,true);
|
||||
rename($dir,$newdir);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue