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:
Oliver Smith 2021-05-29 12:23:38 +02:00
parent 1ea0ce6ef4
commit 0e2c3a853e
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 1 additions and 1 deletions

View File

@ -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