Skip to content

Commit

Permalink
Fix file permission check in gravity.sh. Remove quotes that were adde…
Browse files Browse the repository at this point in the history
…d after complaints from shellcheck, this stopped the comparisson from working

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
  • Loading branch information
PromoFaux committed Mar 27, 2024
1 parent 7442454 commit eb7daf4
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 eb7daf4

Please sign in to comment.