Skip to content

Commit aebe847

Browse files
committed
Removed redundent variable
1 parent ccfdf54 commit aebe847

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

searchsploit.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,12 @@ def update():
170170
""" This function is used to update all the databases via github (because github is the best update system for databases this size)
171171
"""
172172
cwd = os.getcwd()
173-
path = ""
174173
for i in range(len(files_array)):
175-
path = path_array[i]
176174
print("[i] Path: " + path_array[i])
177175
print("[i] Git Pulling: " + name_array[i] + " ~ " + path_array[i])
178176

179177
# update via git
180-
os.chdir(path) # set path to repos directory
178+
os.chdir(path_array[i]) # set path to repos directory
181179
os.system("git pull -v upstream master")
182180
print("[i] Git Pull Complete")
183181
os.chdir(cwd)

0 commit comments

Comments
 (0)