Merge pull request #1078 from balena-io/shellcheck-entry-cleanup

entry.sh: conform to shellcheck syntax
This commit is contained in:
xginn8 2019-09-05 12:09:00 +02:00 committed by GitHub
commit d5f6b903b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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