diff --git a/script/make_utils/run_use_case_examples.sh b/script/make_utils/run_use_case_examples.sh index 369d144d67..60b3a450ea 100755 --- a/script/make_utils/run_use_case_examples.sh +++ b/script/make_utils/run_use_case_examples.sh @@ -12,7 +12,7 @@ fi echo "Running notebooks with PIP installed Concrete ML" -if [[ $(git ls-files --others --exclude-standard | grep ${USE_CASE_REL_DIR}) ]]; then +if git ls-files --others --exclude-standard | grep -q "${USE_CASE_REL_DIR}"; then echo "This script must be run in a clean clone of the Concrete ML repo" echo "This directory has untracked files in ${USE_CASE_REL_DIR}" echo "You can LIST all untracked files using: "