Skip to content

Commit

Permalink
Update skyhookPreCheck.py
Browse files Browse the repository at this point in the history
  • Loading branch information
deedeecx330 authored Jun 6, 2021
1 parent 17c1176 commit 74cecee
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions skyhookPreCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@
print("[!] Cannot read or write to and from {}".format(skyhookConfig.tmpDir))
exit()

if not os.path.isdir(skyhookConfig.tmpDir):
try:
os.makedirs(skyhookConfig.tmpDir, exist_ok=True)
except:
print("[!] Could not create temporary directory {}".format(skyhookConfig.tmpDir))
exit()

if not hasattr(skyhookConfig, 'skyhookDir'):
print("[!] Skyhook directory is not defined\nPlease modify {}".format(skyhookConfig.__file__))
exit()
Expand All @@ -46,10 +39,3 @@
if not (os.access(skyhookConfig.skyhookDir, os.W_OK) and os.access(skyhookConfig.skyhookDir, os.R_OK)):
print("[!] Cannot read or write to and from {}".format(skyhookConfig.skyhookDir))
exit()

if not os.path.isdir(skyhookConfig.skyhookDir):
try:
os.makedirs(skyhookConfig.skyhookDir, exist_ok=True)
except:
print("[!] Could not create Skyhook directory {}".format(skyhookConfig.skyhookDir))
exit()

0 comments on commit 74cecee

Please sign in to comment.