最后活跃于 1 month ago

nuno 修订了这个 Gist 1 month ago. 转到此修订

1 file changed, 9 insertions

gistfile1.txt(文件已创建)

@@ -0,0 +1,9 @@
1 + function peers::is_blocked() {
2 + local name="${1:-}"
3 + local block_file
4 + block_file="$(ctx::block::path "${name}.block")"
5 + [[ ! -f "$block_file" ]] && return 1
6 + local result
7 + result=$(json::block_is_blocked "$block_file")
8 + [[ "$result" == "true" ]]
9 + }
上一页 下一页