Skip to content

Commit 74cecee

Browse files
authored
Update skyhookPreCheck.py
1 parent 17c1176 commit 74cecee

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

skyhookPreCheck.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424
print("[!] Cannot read or write to and from {}".format(skyhookConfig.tmpDir))
2525
exit()
2626

27-
if not os.path.isdir(skyhookConfig.tmpDir):
28-
try:
29-
os.makedirs(skyhookConfig.tmpDir, exist_ok=True)
30-
except:
31-
print("[!] Could not create temporary directory {}".format(skyhookConfig.tmpDir))
32-
exit()
33-
3427
if not hasattr(skyhookConfig, 'skyhookDir'):
3528
print("[!] Skyhook directory is not defined\nPlease modify {}".format(skyhookConfig.__file__))
3629
exit()
@@ -46,10 +39,3 @@
4639
if not (os.access(skyhookConfig.skyhookDir, os.W_OK) and os.access(skyhookConfig.skyhookDir, os.R_OK)):
4740
print("[!] Cannot read or write to and from {}".format(skyhookConfig.skyhookDir))
4841
exit()
49-
50-
if not os.path.isdir(skyhookConfig.skyhookDir):
51-
try:
52-
os.makedirs(skyhookConfig.skyhookDir, exist_ok=True)
53-
except:
54-
print("[!] Could not create Skyhook directory {}".format(skyhookConfig.skyhookDir))
55-
exit()

0 commit comments

Comments
 (0)