mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-16 05:41:49 +02:00
lint
This commit is contained in:
@@ -85,7 +85,7 @@ echo "${CONFIG}" >"$CONFIGDIR"/settings.json &&
|
||||
# USER and PASS
|
||||
###############
|
||||
|
||||
CONFIG=$(<$CONFIGDIR/settings.json)
|
||||
CONFIG=$(<"$CONFIGDIR"/settings.json)
|
||||
USER=$(bashio::config 'user')
|
||||
PASS=$(bashio::config 'pass')
|
||||
if bashio::config.has_value 'user'; then
|
||||
@@ -98,7 +98,7 @@ fi
|
||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-authentication-required\"=${BOOLEAN}")
|
||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-username\"=\"${USER}\"")
|
||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"rpc-password\"=\"${PASS}\"")
|
||||
echo "${CONFIG}" >$CONFIGDIR/settings.json &&
|
||||
echo "${CONFIG}" >"$CONFIGDIR"/settings.json &&
|
||||
jq . -S "$CONFIGDIR"/settings.json | cat >temp.json && mv temp.json "$CONFIGDIR"/settings.json
|
||||
|
||||
# WHITELIST
|
||||
|
||||
Reference in New Issue
Block a user