diff --git a/ci/style.sh b/ci/style.sh old mode 100644 new mode 100755 index 923e675b86d32..7b4508a6524ff --- a/ci/style.sh +++ b/ci/style.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh set -ex @@ -18,3 +18,13 @@ else exit 1 fi +for file in libc-test/semver/*.txt; do + case "$file" in + *TODO*) continue ;; + esac + + if ! sort -C "$file"; then + echo "Unsorted semver file $file" + exit 1 + fi +done