chiark / gitweb /
rule_generator: fix for creating rules on read-only filesystem
authorMatthias Schwarzott <zzam@gentoo.org>
Mon, 26 Feb 2007 14:07:42 +0000 (15:07 +0100)
committerKay Sievers <kay.sievers@suse.de>
Mon, 26 Feb 2007 14:07:42 +0000 (15:07 +0100)
extras/rule_generator/rule_generator.functions

index 14c585a86ae442f2dcfca5785b27471790b6ac79..712ed269e0eaf8ceb9473f7007781878d887a20e 100644 (file)
@@ -92,7 +92,6 @@ find_all_rules() {
        local linkre="$2"
        local match="$3"
 
-       [ -e $RULES_FILE ] || return
        local search='.*[[:space:],]'"$key"'"\('"$linkre"'\)"[[:space:]]*\(,.*\|\\\|\)$'
        echo $(sed -n -e "${match}s/${search}/\1/p" $RO_RULES_FILE $RULES_FILE)
 }