entry.sh: conform to shellcheck syntax

Change-type: patch
Signed-off-by: Matthew McGinn <matthew@balena.io>
This commit is contained in:
Matthew McGinn 2019-09-02 18:39:13 +02:00
parent b487408a18
commit cda39ab9e1
No known key found for this signature in database
GPG Key ID: 4FC50B47B75F63D8

View File

@ -46,7 +46,7 @@ fi
export DBUS_SYSTEM_BUS_ADDRESS="unix:path=/mnt/root/run/dbus/system_bus_socket"
# Include self-signed CAs, should they exist
if [ ! -z "${BALENA_ROOT_CA}" ]; then
if [ -n "${BALENA_ROOT_CA}" ]; then
if [ ! -e '/etc/ssl/certs/balenaRootCA.pem' ]; then
mkdir -p /usr/local/share/ca-certificates
echo "${BALENA_ROOT_CA}" > /usr/local/share/ca-certificates/balenaRootCA.crt