cookutils diff cook @ rev 1044

cook: copy(): fix copying empty dirs
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Mar 31 13:49:11 2018 +0300 (2018-03-31)
parents 25e91fd33194
children 78a8967a7dd0
line diff
     1.1 --- a/cook	Sat Mar 31 04:22:36 2018 +0300
     1.2 +++ b/cook	Sat Mar 31 13:49:11 2018 +0300
     1.3 @@ -1539,9 +1539,11 @@
     1.4  						if [ ! -d "$fs$k" ]; then
     1.5  							# It's like "copy the directory without it's underlying content".
     1.6  							# keep original ownership/permissions, access:
     1.7 +							keepIFS="$IFS"; unset IFS
     1.8  							install -d $(stat -c'-o%u -g%g -m%a' "$install$k") "$fs$k"
     1.9  							# keep last-modified date:
    1.10  							touch -r "$install$k" "$fs$k"
    1.11 +							IFS="$keepIFS"; unset keepIFS
    1.12  						fi
    1.13  					done
    1.14  				done < $folderlist