Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a548cdd7 authored by Tom Cherry's avatar Tom Cherry Committed by android-build-merger
Browse files

Merge "init: Allow matching empty property values"

am: 79896d88

Change-Id: I16828742f36141e7553ea33e68c4427bcb005410
parents 09ee10f1 79896d88
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -195,10 +195,11 @@ bool Action::CheckPropertyTriggers(const std::string& name,
                found = true;
            }
        } else {
            std::string prop_val = android::base::GetProperty(trigger_name, "");
            if (prop_val.empty() || (trigger_value != "*" && trigger_value != prop_val)) {
                return false;
            std::string prop_value = android::base::GetProperty(trigger_name, "");
            if (trigger_value == "*" && !prop_value.empty()) {
                continue;
            }
            if (trigger_value != prop_value) return false;
        }
    }
    return found;