From 8ebd8d9c7322291cfdbf4e04c728904a79c07498 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Fri, 17 Dec 2021 20:55:44 +0100 Subject: [PATCH] option -p fonctionne avec defaults files --- unitests.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/unitests.sh b/unitests.sh index 6b150e0..0792efd 100644 --- a/unitests.sh +++ b/unitests.sh @@ -113,7 +113,13 @@ cd $(dirname $0) if [ "$file" = "-p" ] then PRINT=1 - continue + if [ $# -eq 1 ] + then + LIST_FILES="$DEFAULT_FILES" + break + else + continue + fi fi find_path if [ -e "$file" ]