# HG changeset patch # User Aleksej Bobylev # Date 1449790860 -7200 # Node ID 66b0ea69ad6967c9cb271caaacdac415b53296bd # Parent 1362693564d1eb7026e33ac9ff7509e88cd2fc8a Module install: official config file may be absent diff -r 1362693564d1 -r 66b0ea69ad69 modules/install --- a/modules/install Fri Dec 11 01:32:39 2015 +0200 +++ b/modules/install Fri Dec 11 01:41:00 2015 +0200 @@ -450,7 +450,7 @@ debug " no '--newconf': clean official config files" # Keep user configuration files: remove "official" from fs tree for config_file in $CONFIG_FILES; do - for config_file_official in $(find "fs$config_file" ! -type d | sed 's|^fs||'); do + for config_file_official in $(find "fs$config_file" ! -type d 2>/dev/null | sed 's|^fs||'); do if [ -e "$root$config_file_official" ]; then debug " official '$config_file_official' will be skipped" rm "fs$config_file_official"