mirror of
https://pagure.io/workstation-ostree-config.git
synced 2026-11-03 21:49:45 -09:00
validate: Skip build directories
This commit is contained in:
parent
8bc8488ad3
commit
a0c3b97ad8
1 changed files with 4 additions and 3 deletions
|
|
@ -21,9 +21,10 @@ def validate_shell(rootfd, name):
|
|||
|
||||
|
||||
for root, dirs, files, rootfd in os.fwalk('.'):
|
||||
# Skip .git
|
||||
if '.git' in dirs:
|
||||
dirs.remove('.git')
|
||||
# Skip .git, repo, cache, tmp, logs, fedora-comps
|
||||
for d in ['.git', 'repo', 'cache', 'tmp', 'logs', 'fedora-comps']:
|
||||
if d in dirs:
|
||||
dirs.remove(d)
|
||||
for name in files:
|
||||
if name.endswith(('.yaml', '.yml')):
|
||||
print("Validating:", name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue