tazlito rev 367 5.2.6
Do not deduplicate empty files, up (5.2.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 05 12:24:21 2014 +0100 (2014-12-05) |
parents | a84d908c453b |
children | b321594bcf88 |
files | tazlito |
line diff
1.1 --- a/tazlito Fri Dec 05 12:23:15 2014 +0100 1.2 +++ b/tazlito Fri Dec 05 12:24:21 2014 +0100 1.3 @@ -12,7 +12,7 @@ 1.4 # Authors : Christophe Lincoln <pankso@slitaz.org> 1.5 # Pascal Bellard <pascal.bellard@slitaz.org> 1.6 # 1.7 -VERSION=5.2.5 1.8 +VERSION=5.2.6 1.9 1.10 . /lib/libtaz.sh 1.11 1.12 @@ -381,7 +381,7 @@ 1.13 # Deduplicate files (MUST be on the same filesystem). 1.14 deduplicate() 1.15 { 1.16 - find "${@:-.}" -type f -xdev \ 1.17 + find "${@:-.}" -type f -size +0c -xdev \ 1.18 -exec stat -c '%s-%a-%u-%g %i %h %n' {} \; | sort | \ 1.19 ( save=0; hardlinks=0; old_attr=""; old_inode=""; old_link=""; old_file="" 1.20 while read attr inode link file; do