Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
evz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Тимофей Смирнов
evz
Commits
e7f1ef55
Commit
e7f1ef55
authored
Mar 06, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evz-qm list: list only running by default
parent
3ef863ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
evz-qm
bin/evz-qm
+6
-3
No files found.
bin/evz-qm
View file @
e7f1ef55
...
...
@@ -25,7 +25,7 @@ list_all()
return
fi
a
=
qm list |
grep
"[0-9]
\+
"
|
sed
-e
"s| *
\(
[0-9]
\+\)
.*|
\1
|"
| line_filter
a
=
qm list |
grep
"
running"
|
grep
"
[0-9]
\+
"
|
sed
-e
"s| *
\(
[0-9]
\+\)
.*|
\1
|"
| line_filter
}
# list all containers (or by arg list)
...
...
@@ -132,8 +132,11 @@ case $CMD in
get_list
"
$@
"
exit
fi
docmd qm list
"
$@
"
#info "See evz ports ID for print ports"
if
[
"
$1
"
=
"-a"
]
||
[
"
$1
"
=
"--all"
]
;
then
docmd qm list
else
docmd qm list |
grep
running
fi
;;
exec
)
# HELPCMD: execute command by list (all for all containers)
INCMD
=
"
$1
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment