From e22b770bf74b181b75a77c6f736a956c54449bba Mon Sep 17 00:00:00 2001 From: Donaldttt Date: Sat, 2 Jul 2022 17:00:28 -0400 Subject: [PATCH] . --- bash_tools.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bash_tools.sh b/bash_tools.sh index 39eab36..f683db8 100644 --- a/bash_tools.sh +++ b/bash_tools.sh @@ -26,12 +26,7 @@ function odict(){ # self host directory function dict(){ - local api_str="http://$SERVERIP:10008/$1" - if ! hash python; then - curl "$api_str" - else - curl -s "$api_str" | python -m json.tool - fi + python $ }