1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 11:29:46 +03:00

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

View file

@ -307,7 +307,7 @@ set_reactivate() {
} }
check_and_deactivate() { check_and_deactivate() {
if [ "$POSTMARKETOS_ENVKERNEL_ENABLED" -eq 1 ]; then if [ "$POSTMARKETOS_ENVKERNEL_ENABLED" = 1 ]; then
# we already are runnning in envkernel # we already are runnning in envkernel
deactivate deactivate
fi fi