mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-29 18:56:04 +02:00
GitHub bot: fix linting issues (nobuild)
This commit is contained in:
@@ -75,8 +75,8 @@ dq_escape() {
|
|||||||
while IFS= read -r LINE; do
|
while IFS= read -r LINE; do
|
||||||
[[ -z "$LINE" || "$LINE" != *=* ]] && continue
|
[[ -z "$LINE" || "$LINE" != *=* ]] && continue
|
||||||
# Escape special characters not within single quotes
|
# Escape special characters not within single quotes
|
||||||
LINE=$(sed -E "s/([^'])([][\$\`\"\\!&;|<>])/\1\\\\\\2/g" <<< "$LINE")
|
LINE=$(sed -E "s/([^'])([][\$\`\"\\!&;|<>])/\1\\\\\\2/g" <<<"$LINE")
|
||||||
KEY="${LINE%%=*}"
|
KEY="${LINE%%=*}"
|
||||||
VALUE="${LINE#*=}"
|
VALUE="${LINE#*=}"
|
||||||
# !secret handling
|
# !secret handling
|
||||||
if [[ "$VALUE" =~ ^!secret[[:space:]]+(.+) ]]; then
|
if [[ "$VALUE" =~ ^!secret[[:space:]]+(.+) ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user