Skip to content

Commit 698f9a6

Browse files
authored
Avoid rewrite itself
#1991 (comment)
1 parent e8f52f1 commit 698f9a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.templates/00-banner.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if ! bashio::supervisor.ping 2> /dev/null; then
1717
# Use environment variables instead of addon options
1818
echo "... convert scripts to use environment variables instead of addon options"
1919
while IFS= read -r scripts; do
20+
[[ "$scripts" == *"00-banner.sh"* ]] && continue
2021
sed -i -e 's/bashio::config.has_value[[:space:]]*["'"'"']\([^"'"'"']*\)["'"'"']/[ ! -z "${\1:-}" ]/g' \
2122
-e 's/bashio::config.true[[:space:]]*["'"'"']\([^"'"'"']*\)["'"'"']/[ ! -z "${\1:-}" ] \&\& [ "${\1:-}" = "true" ]/g' \
2223
-e 's/\$(bashio::config[[:space:]]*["'"'"']\([^"'"'"']*\)["'"'"'])/${\1:-}/g' \

0 commit comments

Comments
 (0)