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

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

Merge "init: Allow matching empty property values" am: 79896d88

am: a548cdd7

Change-Id: I966c620a8bc5071aa94908295a226624b6b9b496
parents d20adcae a548cdd7
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;