Skip to content

Commit

Permalink
Remove double quotes that prevented _any_ local files from being read…
Browse files Browse the repository at this point in the history
… by gravity (pi-hole#5617)
  • Loading branch information
PromoFaux committed Mar 27, 2024
2 parents 7442454 + eb7daf4 commit 32c640e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gravity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32c640e

Please sign in to comment.