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
6584a9bc
Commit
6584a9bc
authored
Mar 07, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add like_id for every engine and check if id is legal
parent
65cb4c2e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
0 deletions
+31
-0
evz-docker
bin/evz-docker
+6
-0
evz-functions
bin/evz-functions
+1
-0
evz-pct
bin/evz-pct
+5
-0
evz-qm
bin/evz-qm
+6
-0
evz-vboxmanage
bin/evz-vboxmanage
+8
-0
evz-vzctl
bin/evz-vzctl
+5
-0
No files found.
bin/evz-docker
View file @
6584a9bc
...
...
@@ -46,6 +46,12 @@ list_ALL_names()
a
=
docker ps
--all
-q
--format
"{{.Names}}"
| line_filter
}
like_id
()
{
# a55f 58b1 84ac
echo
"
$1
"
|
grep
-q
"^[0-9a-f]{12}$"
}
todo
()
{
warning
"
$@
"
...
...
bin/evz-functions
View file @
6584a9bc
...
...
@@ -46,6 +46,7 @@ arg_is_id()
[
-n
"
$1
"
]
||
return
1
echo
"
$(
list_ALL
)
"
|
grep
-q
"
$1
"
&&
return
0
echo
"
$(
list_ALL_names
)
"
|
grep
-q
"
$1
"
&&
return
0
like_id
"
$1
"
&&
fatal
"ID
$1
is missed on the host. Check # evz list -a output"
return
1
}
...
...
bin/evz-pct
View file @
6584a9bc
...
...
@@ -47,6 +47,11 @@ list_ALL_names()
return
}
like_id
()
{
echo
"
$1
"
|
grep
-q
-E
"^[0-9]+$"
}
todo
()
{
warning
"FIXME:
$@
"
...
...
bin/evz-qm
View file @
6584a9bc
...
...
@@ -44,6 +44,12 @@ list_ALL_names()
a
=
qm list |
grep
"[0-9]
\+
"
|
sed
-e
"s| *
\(
[0-9]
\+\)
.*|
\1
|"
| line_filter
}
like_id
()
{
echo
"
$1
"
|
grep
-q
-E
"^[0-9]+$"
}
todo
()
{
warning
"FIXME:
$@
"
...
...
bin/evz-vboxmanage
View file @
6584a9bc
...
...
@@ -47,6 +47,14 @@ list_ALL_names()
return
}
like_id
()
{
# 8-4-4-4-12
# 707b0509-d9f6-4b33-833b-4af1a2e12eee
echo
"
$1
"
|
grep
-q
-E
"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
}
todo
()
{
warning
"
$@
"
...
...
bin/evz-vzctl
View file @
6584a9bc
...
...
@@ -37,6 +37,11 @@ list_ALL_names()
a
=
vzlist
-H
-a
-o
name |
grep
-v
"^-$"
}
like_id
()
{
echo
"
$1
"
|
grep
-q
-E
"^[0-9]+$"
}
evz_vzctl
()
{
...
...
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