From 560667284820b8893c258565d801e21bb5e9d21e Mon Sep 17 00:00:00 2001 From: Maxime Orefice Date: Fri, 27 Nov 2015 11:32:10 +0100 Subject: [PATCH] Update smack_my_bitch_up.rb Correct exit session unless session with username is found --- smack_my_bitch_up.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack_my_bitch_up.rb b/smack_my_bitch_up.rb index 06596e8..6164894 100755 --- a/smack_my_bitch_up.rb +++ b/smack_my_bitch_up.rb @@ -4,7 +4,7 @@ exit if Time.now.saturday? || Time.now.sunday? # Exit early if no sessions with my username are found -exit if `who -q`.include? ENV['USER'] +exit unless `who -q`.include? ENV['USER'] require 'dotenv' require 'twilio-ruby'