Permalink
Browse files

no whoami command in windows

  • Loading branch information...
1 parent 9d7dd14 commit 6038ebf811af1c4350adf683a7c0285e25e4a0f3 @flyerhzm committed Aug 31, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/bullet/notification/base.rb
@@ -19,7 +19,12 @@ def body
end
def whoami
- "user: " << `whoami`.chomp
+ user = `whoami`
+ if user
+ "user: #{user.chomp}"
+ else
+ ""
+ end
end
def body_with_caller

0 comments on commit 6038ebf

Please sign in to comment.