File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ while File.symlink?(msfbase)
9
9
msfbase = File . expand_path ( File . readlink ( msfbase ) , File . dirname ( msfbase ) )
10
10
end
11
11
12
- msfbase_dir = File . dirname ( msfbase )
12
+ @ msfbase_dir = File . dirname ( msfbase )
13
13
14
14
@args = ARGV . dup
15
15
16
16
# May be changed
17
17
@configdir = File . expand_path ( File . join ( File . dirname ( msfbase ) , "data" , "svn" ) )
18
18
19
- Dir . chdir ( msfbase_dir )
19
+ Dir . chdir ( @ msfbase_dir)
20
20
21
21
$stderr. puts "[*]"
22
22
$stderr. puts "[*] Attempting to update the Metasploit Framework..."
@@ -29,12 +29,12 @@ if not (Process.uid == 0 or File.stat(msfbase).owned?)
29
29
end
30
30
31
31
32
- def is_git ( msfbase_dir )
33
- File . directory? ( File . join ( msfbase_dir , ".git" ) )
32
+ def is_git
33
+ File . directory? ( File . join ( @ msfbase_dir, ".git" ) )
34
34
end
35
35
36
- def is_svn ( msfbase_dir )
37
- File . directory? ( File . join ( msfbase_dir , ".svn" ) )
36
+ def is_svn
37
+ File . directory? ( File . join ( @ msfbase_dir, ".svn" ) )
38
38
end
39
39
40
40
# TODO
@@ -108,7 +108,7 @@ if is_git
108
108
end
109
109
110
110
unless is_svn || is_git
111
- raise RuntimeError , "Cannot determine checkout type: `#{ msfbase_dir } '"
111
+ raise RuntimeError , "Cannot determine checkout type: `#{ @ msfbase_dir} '"
112
112
end
113
113
114
114
if @actually_wait
You can’t perform that action at this time.
0 commit comments