.
This commit is contained in:
+1
-6
@@ -26,12 +26,7 @@ function odict(){
|
|||||||
|
|
||||||
# self host directory
|
# self host directory
|
||||||
function dict(){
|
function dict(){
|
||||||
local api_str="http://$SERVERIP:10008/$1"
|
python $
|
||||||
if ! hash python; then
|
|
||||||
curl "$api_str"
|
|
||||||
else
|
|
||||||
curl -s "$api_str" | python -m json.tool
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user