mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-19 14:48:13 +00:00
Fix file permission check in gravity.sh. Remove quotes that were added after complaints from shellcheck, this stopped the comparisson from working
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
7442454d32
commit
eb7daf4d2c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user