Skip to content

Commit 3eb150d

Browse files
committed
add example preflight script
1 parent 3d9783e commit 3eb150d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/python
2+
import os
3+
4+
5+
def check():
6+
validated = True
7+
filetocheck = '/path/to/file/file.ext'
8+
if not os.path.isfile(filetocheck):
9+
validated = False
10+
11+
return validated
12+
13+
14+
def main():
15+
if check():
16+
# Our checks passed, so we can skip the bootstrap process.
17+
exit(0)
18+
else:
19+
# Our checks didn't pass, so we need to run the bootstrap process.
20+
exit(1)
21+
22+
23+
if __name__ == '__main__':
24+
main()

0 commit comments

Comments
 (0)