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 Nov 26, 2024
1 parent 35471b0 commit 2fefe77
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 2fefe77

Please sign in to comment.