Fix cl test script on macOS

This commit is contained in:
Dallon Asnes 2021-11-29 23:43:28 -06:00
parent cb610b5021
commit a0aacb91a6

View File

@ -54,7 +54,13 @@ do
shift
;;
*)
if [[ "$OSTYPE" == "darwin"* ]]
then
matching_tests=$(find . -mindepth 1 -maxdepth 1 -type d -name "$1" | cut -c 3- | sort)
else
matching_tests=$(find . -mindepth 1 -maxdepth 1 -type d -name "$1" | cut --characters 3- | sort)
fi
if [[ $matching_tests == "" ]]
then