tweak linky-notify for Workflow compat

This commit is contained in:
Sami Samhuri 2016-02-13 13:39:49 -08:00
parent b0ce70560a
commit bfee5916f7

View file

@ -57,8 +57,9 @@ def main
title ||= line
end
end
title ||= filename.sub(/^[0-9]+-/, '').sub(/\.[^.]+$/, '')
if url
command = notify_command(title || url, url)
command = notify_command(title, url)
log "[#{Time.now.iso8601}] #{command}"
output = `#{command}`
unless $?.success?