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