Reimplement

This commit is contained in:
d1slike committed 2023-06-09 17:25:12 +03:00
1 parent d4d7c679aa
commit df259e3f78
36 files changed
+559 -1135

No files matched your search

+4 -4
View File
@@ -1,9 +1,9 @@
#!/bin/bash
mkdir -p schemas
if [ -n "$*" ]; then
statusResponse=$(isp-ctl $* status)
statusResponse=$(ispctl $* status)
else
statusResponse=$(isp-ctl status)
statusResponse=$(ispctl status)
fi
i=0
@@ -16,9 +16,9 @@ for status in $statusResponse; do
read -ra ADDR <<<"$status"
for module_name in "${ADDR[0]}"; do
if [ -n "$*" ]; then
isp-ctl $* schema $module_name -o html > schemas/$module_name.html
ispctl $* schema $module_name -o html > schemas/$module_name.html
else
isp-ctl schema $module_name -o html > schemas/$module_name.html
ispctl schema $module_name -o html > schemas/$module_name.html
fi
break
done