fix
This commit is contained in:
1 parent
6186eb2786
commit
2893166bde
2 files changed
+4
-6
No files matched your search
+2
-2
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user