Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
3f9cf2ad
Commit
3f9cf2ad
authored
Jun 16, 2010
by
Daniel Lezcano
Committed by
Daniel Lezcano
Jun 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lxc-checkconfig
Fix bad comparison. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
b0badabd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
lxc-checkconfig.in
src/lxc/lxc-checkconfig.in
+1
-3
No files found.
src/lxc/lxc-checkconfig.in
View file @
3f9cf2ad
...
@@ -11,8 +11,6 @@ SETCOLOR_NORMAL="echo -en \\033[0;39m"
...
@@ -11,8 +11,6 @@ SETCOLOR_NORMAL="echo -en \\033[0;39m"
is_set
()
{
is_set
()
{
$GREP
-q
"
$1
=[y|m]"
$CONFIG
$GREP
-q
"
$1
=[y|m]"
$CONFIG
RES
=
$?
return
$?
return
$?
}
}
...
@@ -22,7 +20,7 @@ is_enabled() {
...
@@ -22,7 +20,7 @@ is_enabled() {
is_set
$1
is_set
$1
RES
=
$?
RES
=
$?
if
[
$RES
=
0
]
;
then
if
[
$RES
-eq
0
]
;
then
$SETCOLOR_SUCCESS
&&
echo
-e
"enabled"
&&
$SETCOLOR_NORMAL
$SETCOLOR_SUCCESS
&&
echo
-e
"enabled"
&&
$SETCOLOR_NORMAL
else
else
if
[
!
-z
"
$mandatory
"
-a
"
$mandatory
"
=
yes
]
;
then
if
[
!
-z
"
$mandatory
"
-a
"
$mandatory
"
=
yes
]
;
then
...
...
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