nuno revisou este gist 1 month ago. Ir para a revisão
1 file changed, 9 insertions
gistfile1.txt(arquivo criado)
| @@ -0,0 +1,9 @@ | |||
| 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 | |
Próximo
Anterior