1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-03-06 19:26:13 +00:00

If there are no files to change, don't print an error (#5953)

This commit is contained in:
Dominik 2025-02-23 09:04:16 +01:00 committed by GitHub
commit 9c995962a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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() {