mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 06:31:36 +01:00
fix: allow dash in path
This commit is contained in:
@@ -15,7 +15,7 @@ if __name__ == "__main__":
|
||||
args = parser.parse_args()
|
||||
|
||||
# check parameter #
|
||||
if not args.PATH.replace("/", "").isalnum():
|
||||
if not args.PATH.replace("/", "").replace("-","").isalnum():
|
||||
print("Illegal Path: {} (must be alphanum + /)".format(args.PATH))
|
||||
sys.exit(1)
|
||||
elif not args.PATH.startswith("/"):
|
||||
|
||||
Reference in New Issue
Block a user