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
co-authored by Kamil Śliwak
parent a0aacb91a6
commit 70e925dbfc
+1 -6
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 == "" ]]