Skip to content

Commit e65b7f1

Browse files
authored
Merge pull request #1148 from ilario/evData_service
hotplug-initd-observer: Avoid format error when evData.service is empty
2 parents 29b5f66 + 2fefe77 commit e65b7f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hotplug-initd-services/files/usr/bin/hotplug-initd-observer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ local function notifyHooks(evData, evName)
1111
for hook in fs.dir(hooksDir) do
1212
os.execute(
1313
string.format( 'ACTION="%s" SERVICE="%s" %s/%s',
14-
evName, evData.service, hooksDir, hook ) )
14+
evName, evData.service or '', hooksDir, hook ) )
1515
end
1616
end
1717

0 commit comments

Comments
 (0)