mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +01:00
Fix lint
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
[](https://dev.azure.com/home-assistant/Home%20Assistant/_build/latest?definitionId=7&branchName=master)
|
||||
|
||||
# Hass.io Addons repository
|
||||
|
||||
https://home-assistant.io/hassio
|
||||
|
||||
@@ -9,7 +9,7 @@ SHELL ["/bin/ash", "-o", "pipefail", "-c"]
|
||||
|
||||
##
|
||||
# RPi support for HDMI-CEC on armhf/aarch64
|
||||
RUN if [ "$BUILD_ARCH" == "armhf" ] || [ "$BUILD_ARCH" == "aarch64" ]; then \
|
||||
RUN if [ "$BUILD_ARCH" = "armhf" ] || [ "$BUILD_ARCH" = "aarch64" ]; then \
|
||||
apk add --no-cache raspberrypi-dev raspberrypi-libs; \
|
||||
fi
|
||||
|
||||
@@ -19,7 +19,7 @@ ARG LIBCEC_VERSION
|
||||
RUN apk add --no-cache eudev-libs p8-platform \
|
||||
&& apk add --no-cache --virtual .build-dependencies \
|
||||
build-base cmake eudev-dev git swig p8-platform-dev \
|
||||
&& git clone --depth 1 -b libcec-${LIBCEC_VERSION} https://github.com/Pulse-Eight/libcec /usr/src/libcec \
|
||||
&& git clone --depth 1 -b "libcec-${LIBCEC_VERSION}" https://github.com/Pulse-Eight/libcec /usr/src/libcec \
|
||||
&& mkdir -p /usr/src/libcec/build \
|
||||
&& cd /usr/src/libcec/build \
|
||||
&& if [ "$BUILD_ARCH" != "armhf" ] && [ "$BUILD_ARCH" != "aarch64" ]; then \
|
||||
|
||||
@@ -37,7 +37,7 @@ function _deconz_api() {
|
||||
local api_port
|
||||
|
||||
api_port=$(bashio::addon.port 80)
|
||||
while ! nc -z localhost ${api_port} </dev/null; do sleep 10; done
|
||||
while ! nc -z localhost "${api_port}" < /dev/null; do sleep 10; done
|
||||
|
||||
if ! result="$(curl --silent --show-error --request POST -d '{"devicetype": "Home Assistant"}' "http://127.0.0.1:${api_port}/api")"; then
|
||||
bashio::log.debug "${result}"
|
||||
|
||||
Reference in New Issue
Block a user