gistfile1.txt
· 297 B · Text
Surowy
local block_file
block_file=$(block::file "$name")
if [[ -f "$block_file" ]]; then
local is_bl
is_bl=$(json::block_is_blocked "$block_file")
_restricted["$name"]=$( [[ "$is_bl" == "true" ]] && echo true || echo false )
else
_restricted["$name"]=false
fi
| 1 | local block_file |
| 2 | block_file=$(block::file "$name") |
| 3 | if [[ -f "$block_file" ]]; then |
| 4 | local is_bl |
| 5 | is_bl=$(json::block_is_blocked "$block_file") |
| 6 | _restricted["$name"]=$( [[ "$is_bl" == "true" ]] && echo true || echo false ) |
| 7 | else |
| 8 | _restricted["$name"]=false |
| 9 | fi |