tazpkg rev 888
Module install: official config file may be absent
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 11 01:41:00 2015 +0200 (2015-12-11) |
parents | 1362693564d1 |
children | ce0db4329d29 |
files | modules/install |
line diff
1.1 --- a/modules/install Fri Dec 11 01:32:39 2015 +0200 1.2 +++ b/modules/install Fri Dec 11 01:41:00 2015 +0200 1.3 @@ -450,7 +450,7 @@ 1.4 debug " no '--newconf': clean official config files" 1.5 # Keep user configuration files: remove "official" from fs tree 1.6 for config_file in $CONFIG_FILES; do 1.7 - for config_file_official in $(find "fs$config_file" ! -type d | sed 's|^fs||'); do 1.8 + for config_file_official in $(find "fs$config_file" ! -type d 2>/dev/null | sed 's|^fs||'); do 1.9 if [ -e "$root$config_file_official" ]; then 1.10 debug " official '$config_file_official' will be skipped" 1.11 rm "fs$config_file_official"