Avoid unbound variables

https://github.com/alexbelgium/hassio-addons/issues/575
This commit is contained in:
Alexandre
2022-11-24 19:38:38 +01:00
committed by GitHub
parent 73a37847ad
commit 0587ae368a

View File

@@ -1,6 +1,9 @@
#!/usr/bin/env bashio
# shellcheck shell=bash
# Avoid unbound variables
set +u
# Autodefine if not defined
if [ -n "$INTERFACE_NAME" ]; then
# shellcheck disable=SC2155