最終更新 1 month ago

nuno revised this gist 1 month ago. Go to revision

1 file changed, 9 insertions

gistfile1.txt(file created)

@@ -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
Newer Older