envkernel.sh: fix integer compare used for string (MR 2059)
Prevent stricter shells from crashing there if $POSTMARKETOS_ENVKERNEL_ENBALED is an empty string. It was reported that it crashes in ksh93, and busybox sh also complains about it.
This commit is contained in:
parent
1ea0ce6ef4
commit
0e2c3a853e
|
@ -307,7 +307,7 @@ set_reactivate() {
|
|||
}
|
||||
|
||||
check_and_deactivate() {
|
||||
if [ "$POSTMARKETOS_ENVKERNEL_ENABLED" -eq 1 ]; then
|
||||
if [ "$POSTMARKETOS_ENVKERNEL_ENABLED" = 1 ]; then
|
||||
# we already are runnning in envkernel
|
||||
deactivate
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue