1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-19 14:48:13 +00:00
This commit is contained in:
Adam Warner 2024-03-27 19:18:09 +00:00 committed by GitHub
commit 74a44cad7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -575,7 +575,7 @@ gravity_DownloadBlocklistFromUrl() {
else
# Check if the file has a+r permissions
permissions=$(stat -c "%a" "$file_path")
if [[ $permissions == "??4" || $permissions == "??5" || $permissions == "??6" || $permissions == "??7" ]]; then
if [[ $permissions == *4 || $permissions == *5 || $permissions == *6 || $permissions == *7 ]]; then
# Output that we are using the local file
echo -e "${OVER} ${INFO} Using local file ${file_path}"
else