From cd269cbca11d39201454bea33d0476fe4180d6fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Fri, 21 Feb 2025 22:02:03 +0100 Subject: [PATCH] If there are no files to change, don't print an error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- gravity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 0a34599b..493f2b15 100755 --- a/gravity.sh +++ b/gravity.sh @@ -1082,7 +1082,7 @@ migrate_to_listsCache_dir() { fi # Update the list's paths in the corresponding .sha1 files to the new location - sed -i "s|${piholeDir}/|${listsCacheDir}/|g" "${listsCacheDir}"/*.sha1 + sed -i "s|${piholeDir}/|${listsCacheDir}/|g" "${listsCacheDir}"/*.sha1 2>/dev/null } helpFunc() {