Update test/cmdlineTests.sh

Co-authored-by: Kamil Śliwak <cameel2@gmail.com>
This commit is contained in:
Dallon Asnes 2021-11-30 10:07:50 -06:00 committed by GitHub
parent a0aacb91a6
commit 70e925dbfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,12 +54,7 @@ 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
matching_tests=$(find . -mindepth 1 -maxdepth 1 -type d -name "$1" | cut -c 3- | sort)
if [[ $matching_tests == "" ]]