From 6209b9c9f77af5f7ca0618a44bfd0b5955d7d678 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 23 Jun 2020 20:07:41 -0500 Subject: hscript: Implement runlevel support in svcenable key --- hscript/script_i.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hscript/script_i.hh') diff --git a/hscript/script_i.hh b/hscript/script_i.hh index b223608..abe56ec 100644 --- a/hscript/script_i.hh +++ b/hscript/script_i.hh @@ -257,10 +257,10 @@ struct Script::ScriptPrivate { const ScriptOptions &) { std::unique_ptr svc(dynamic_cast(obj)); for(const auto &s : svcs_enable) { - if(s->value() == svc->value()) { + if(s->service() == svc->service()) { if(warn) *warn += 1; output_warning(pos, "svcenable: service already enabled", - s->value()); + s->service()); return true; } } -- cgit v1.2.3-70-g09d2