From 9ce41eae14e4eb4ac26c3413444a2ef5c61a2db1 Mon Sep 17 00:00:00 2001 From: Ben Franksen Date: Thu, 2 Jan 2025 18:18:58 +0100 Subject: [PATCH] head 2025-01-02 17:18:58+00:00 --- tests/issue1210-no-global-cache-in-sources.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/issue1210-no-global-cache-in-sources.sh b/tests/issue1210-no-global-cache-in-sources.sh index c4f0900..7028a13 100644 --- a/tests/issue1210-no-global-cache-in-sources.sh +++ b/tests/issue1210-no-global-cache-in-sources.sh @@ -28,5 +28,7 @@ rm -rf R S darcs init --repo R darcs get R S -not grep "$DARCS_TESTING_CACHE_DIR" S/_darcs/prefs/sources +if test -n "$DARCS_TESTING_CACHE_DIR"; then + not grep "$DARCS_TESTING_CACHE_DIR" S/_darcs/prefs/sources +fi not grep "cache:" S/_darcs/prefs/sources