Skip to content

Commit

Permalink
avoid format error when evData.service is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ilario committed Dec 30, 2024
1 parent a7aa9d9 commit 3d90a9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local function notifyHooks(evData, evName)
for hook in fs.dir(hooksDir) do
os.execute(
string.format( 'ACTION="%s" SERVICE="%s" %s/%s',
evName, evData.service, hooksDir, hook ) )
evName, evData.service or '', hooksDir, hook ) )
end
end

Expand Down

0 comments on commit 3d90a9b

Please sign in to comment.