This commit is contained in:
ykomissarov committed 2019-09-09 14:28:28 +03:00
1 parent 6186eb2786
commit 2893166bde
2 files changed
+4 -6

No files matched your search

+2 -2
View File
@@ -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
+2 -4
View File
@@ -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