From 2893166bde96d7979d8cd1bf50aa517b9de1c7df Mon Sep 17 00:00:00 2001 From: ykomissarov Date: Mon, 9 Sep 2019 14:28:28 +0300 Subject: [PATCH] fix --- allconfig.sh | 4 ++-- allschema.sh | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/allconfig.sh b/allconfig.sh index 868b498..0ee983e 100755 --- a/allconfig.sh +++ b/allconfig.sh @@ -16,9 +16,9 @@ for status in $statusResponse; do read -ra ADDR <<<"$status" for module_name in "${ADDR[0]}"; do if [ -n "$*" ]; then - echo $(isp-ctl $* get $module_name .) >configs/$module_name.json + isp-ctl $* get $module_name . > configs/$module_name.json else - echo $(isp-ctl get $module_name .) >configs/$module_name.json + isp-ctl get $module_name . > configs/$module_name.json fi break done diff --git a/allschema.sh b/allschema.sh index be98041..cfb0d38 100755 --- a/allschema.sh +++ b/allschema.sh @@ -15,13 +15,11 @@ for status in $statusResponse; do IFS=$' ' read -ra ADDR <<<"$status" for module_name in "${ADDR[0]}"; do - if [ -n "$*" ]; then - echo $(isp-ctl $* schema $module_name -o html) >schemas/$module_name.html + isp-ctl $* schema $module_name -o html > schemas/$module_name.html else - echo $(isp-ctl schema $module_name -o html) >schemas/$module_name.html + isp-ctl schema $module_name -o html > schemas/$module_name.html fi - break done fi