Skip to content

Commit

Permalink
Strip trailing slash on auxiliary scripts (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcalixte authored Sep 12, 2024
1 parent 565be6d commit 53714ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test-spice
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ def main():
os.remove(rm_path)
sys.exit(0)
elif args.skip and args.uuid:
copy_xlet(args.uuid)
copy_xlet(args.uuid.rstrip('/'))
elif args.uuid and not args.remove:
validate_spice(args.uuid)
copy_xlet(args.uuid)
validate_spice(args.uuid.rstrip('/'))
copy_xlet(args.uuid.rstrip('/'))
else:
parser.print_help()
sys.exit(2)
Expand Down
2 changes: 1 addition & 1 deletion validate-spice
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def main():
if os.path.isdir(file_path) and not file_path.startswith("."):
is_valid.append(validate_xlet(file_path))
elif args.uuid:
is_valid.append(validate_xlet(args.uuid))
is_valid.append(validate_xlet(args.uuid.rstrip('/')))
else:
parser.print_help()
sys.exit(2)
Expand Down

0 comments on commit 53714ff

Please sign in to comment.