最后活跃于 1 month ago

修订 eebceb548d98e394266239bd6cd938e2dbdc6990

gistfile1.txt 原始文件
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