Skip to content

Commit c73cd82

Browse files
busterbBrent Cook
authored andcommitted
whine more uniformly
1 parent 0f832fd commit c73cd82

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

msfupdate

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Msfupdate
8686

8787
def validate_args
8888
valid = true
89-
if binary_install? || apt?
89+
if binary_install?
9090
if @git_branch
9191
stderr.puts "[-] ERROR: git-branch is not supported on this installation"
9292
valid = false
@@ -96,7 +96,7 @@ class Msfupdate
9696
valid = false
9797
end
9898
end
99-
if apt? || git?
99+
if git?
100100
if @offline_file
101101
stderr.puts "[-] ERROR: offline-file option is not supported on this installation"
102102
valid = false
@@ -135,8 +135,8 @@ class Msfupdate
135135

136136
Dir.chdir(@msfbase_dir) do
137137
if apt?
138-
stderr.puts "msfupdate is not supported on Kali Linux, since it is a normal OS package."
139-
stderr.puts "Please use 'apt update; apt install metasploit-framework' instead."
138+
stderr.puts "[-] ERROR: msfupdate is not supported on Kali Linux."
139+
stderr.puts "[-] Please run 'apt update; apt install metasploit-framework' instead."
140140
elsif binary_install?
141141
update_binary_install!
142142
elsif git?

0 commit comments

Comments
 (0)