Skip to content

Commit 1f51464

Browse files
authored
validate-spice: Check for whitespace in top-level paths (#1852)
1 parent ced7c5c commit 1f51464

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

validate-spice

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ def exit_status(valid):
156156
if sys.argv[1] == "--all":
157157
valid = True
158158
for uuid in os.listdir("."):
159+
if any(char.isspace() for char in uuid):
160+
raise CheckError(f"Invalid whitespace in path '{uuid}'")
159161
if os.path.isdir(uuid) and not uuid.startswith("."):
160162
valid = validate_xlet(uuid) and valid
161163
else:

0 commit comments

Comments
 (0)