From 9181c83a8701e1da64ce6bb179c4da674b8d6a09 Mon Sep 17 00:00:00 2001 From: Isaac Powell <36595182+DeezyE@users.noreply.github.com> Date: Fri, 26 Nov 2021 15:20:48 +1000 Subject: [PATCH] catch for nil (#2237) --- beef | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beef b/beef index ccca587e1..ec28c5fdb 100755 --- a/beef +++ b/beef @@ -57,7 +57,7 @@ if File.exist?("#{$root_dir}git") && BeEF::Core::Console::CommandLine.parse[:upd puts '-- BeEF Update Available --' print 'Would you like to update to lastest version? y/n: ' response = gets - `git pull && bundle` if response.strip == 'y' + `git pull && bundle` if response&.strip == 'y' end rescue Timeout::Error puts "\nUpdate Skipped with input timeout"