mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-13 01:20:32 +02:00
Update 02-init_steps.sh
This commit is contained in:
@@ -171,8 +171,8 @@ if bashio::config.true "enable_thumbnails"; then
|
||||
# Remove leading blanks
|
||||
# shellcheck disable=SC2116,SC2086
|
||||
line="$(echo $line)"
|
||||
# Use sed to insert the line after the match "installed" in the config_file
|
||||
sed -i "/installed/i\ \ $line" "$files"
|
||||
# Use sed to insert the line at the end in the config_file
|
||||
sed -i "/);/i\ \ $line" "$files"
|
||||
done < "$lines_to_add"
|
||||
|
||||
# Clean temporary file
|
||||
|
||||
Reference in New Issue
Block a user