cookutils 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 | 8e0d6c7541ec |
children | 2ad4e06e9141 |
files | cook |
line diff
1.1 --- a/cook Sat Mar 31 12:57:43 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