Dernière activité 1 month ago

nuno a révisé ce gist 1 month ago. Aller à la révision

1 file changed, 9 insertions

gistfile1.txt(fichier créé)

@@ -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
Plus récent Plus ancien