Skip to content

Commit

Permalink
Merge pull request #109 from mattheworiordan/issue-108
Browse files Browse the repository at this point in the history
Fix terminal-notifier Bundler issue
  • Loading branch information
alexch authored Jan 22, 2018
2 parents f4f2e46 + 3347aa1 commit a6a689a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/rerun/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def command_named(name)

def send(background = true)
return unless command
`#{command}#{" &" if background}`
with_clean_env do
`#{command}#{" &" if background}`
end
end

def app_name
Expand All @@ -65,5 +67,14 @@ def icon_dir
File.expand_path("#{here}/../../icons")
end

def with_clean_env
if defined?(Bundler)
Bundler.with_clean_env do
yield
end
else
yield
end
end
end
end

0 comments on commit a6a689a

Please sign in to comment.