mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update 01-config_yaml.sh
This commit is contained in:
@@ -138,9 +138,6 @@ function parse_yaml {
|
|||||||
local input_file=$1
|
local input_file=$1
|
||||||
local output_file=$2
|
local output_file=$2
|
||||||
|
|
||||||
# Clear the output file if it already exists
|
|
||||||
>"$output_file"
|
|
||||||
|
|
||||||
# Process each line to escape special characters and format as needed
|
# Process each line to escape special characters and format as needed
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
# Skip lines that are empty or only contain whitespace
|
# Skip lines that are empty or only contain whitespace
|
||||||
|
|||||||
Reference in New Issue
Block a user