Remove double quotes that prevented _any_ local files from being read by gravity (#5617)

pull/5618/head
Adam Warner 1 month ago committed by GitHub
commit 32c640e838
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save