diff --git a/tools/requirements_style_check.sh b/tools/requirements_style_check.sh index ccbff3bddc..2b5bd10f7b 100755 --- a/tools/requirements_style_check.sh +++ b/tools/requirements_style_check.sh @@ -12,7 +12,7 @@ function check_file() { # We don't care about comment lines. grep -v '^#' $f > ${f}.unsorted - sort -i -f ${f}.unsorted > ${f}.sorted + sort -d -i -f ${f}.unsorted > ${f}.sorted diff -c ${f}.unsorted ${f}.sorted rc=$? rm -f ${f}.sorted ${f}.unsorted