最後活躍 1 month ago

nuno 已修改 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 + }
上一頁 下一頁