Merge "CSIT tests for SO vCPE/OOF/HPA"
[integration.git] / version-manifest / src / main / scripts / check-sorted.sh
1 #!/bin/bash
2 LC_ALL=C sort -c $1
3 retval=$?
4 if [ $retval -ne 0 ]; then
5     echo
6     echo "[ERROR] $1 is not properly sorted.  Please sort it with the following commands:"
7     echo
8     echo "  LC_ALL=C sort < $1 > $1.tmp"
9     echo "  mv $1.tmp $1"
10     echo
11 fi
12 exit $retval