👕 Fixes shellcheck linter warnings

This commit is contained in:
Franck Nijhof 2019-03-16 15:35:04 +01:00
parent 7cbbd0e5bf
commit ba800df058
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
4 changed files with 26 additions and 26 deletions

View file

@ -951,7 +951,7 @@ function bashio::addon.blk_write() {
function bashio::require.protected() {
local protected
protected=$(bashio::addon.protected)
protected=$(bashio::addon.protected 'self')
if bashio::var.true "${protected}"; then
return "${__BASHIO_EXIT_OK}"
fi
@ -978,7 +978,7 @@ function bashio::require.protected() {
function bashio::require.unprotected() {
local protected
protected=$(bashio::addon.protected)
protected=$(bashio::addon.protected 'self')
if bashio::var.false "${protected}"; then
return "${__BASHIO_EXIT_OK}"
fi