GitHub bot: fix linting issues (nobuild)

This commit is contained in:
github-actions
2025-06-24 15:56:45 +00:00
parent 15937c08fc
commit 4245ac9161

View File

@@ -81,7 +81,7 @@ for CONFIG_FILE in "$(bashio::config 'config_location')/sync.conf" "/defaults/sy
if [ -f "$CONFIG_FILE" ]; then
echo "Checking dir_whitelist in $CONFIG_FILE"
for DIR in "${DIRS_TO_ADD[@]}"; do
if ! jq -e ".webui.dir_whitelist | index(\"$DIR\")" "$CONFIG_FILE" > /dev/null; then
if ! jq -e ".webui.dir_whitelist | index(\"$DIR\")" "$CONFIG_FILE" >/dev/null; then
echo "Adding $DIR to dir_whitelist"
jq ".webui.dir_whitelist += [\"$DIR\"]" "$CONFIG_FILE" | sponge "$CONFIG_FILE"
fi