From bfee5916f791455d37f1c1e4a522e11d1b0c8960 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 13 Feb 2016 13:39:49 -0800 Subject: [PATCH] tweak linky-notify for Workflow compat --- linky-notify | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linky-notify b/linky-notify index f2b60b4..6e80154 100755 --- a/linky-notify +++ b/linky-notify @@ -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?