mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
rstrip modules path, to prevent some strange scenario with .git
This commit is contained in:
@@ -249,6 +249,8 @@ def main():
|
||||
action='store_true')
|
||||
args = parser.parse_args()
|
||||
|
||||
args.modules = args.modules.rstrip('/')
|
||||
|
||||
for root, dirs, files in os.walk(args.modules):
|
||||
basedir = root[len(args.modules)+1:].split('/', 1)[0]
|
||||
if basedir in BLACKLIST_DIRS:
|
||||
|
||||
Reference in New Issue
Block a user