mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-17 14:21:49 +02:00
Update 99-run.sh
This commit is contained in:
@@ -75,7 +75,7 @@ do
|
|||||||
secret=${line#*secret }
|
secret=${line#*secret }
|
||||||
# Check if single match
|
# Check if single match
|
||||||
secretnum=$(sed -n "/$secret:/=" /config/secrets.yaml)
|
secretnum=$(sed -n "/$secret:/=" /config/secrets.yaml)
|
||||||
[[ $(echo $secretnum) == *' '* ]] && bashio::log.fatal "There are multiple matches for your password name. Please check your secrets.yaml file" && bashio::addon.stop
|
[[ $(echo $secretnum) == *' '* ]] && bashio::log.fatal "There are multiple matches for your password name. Please check your secrets.yaml file" && bashio::exit.nok
|
||||||
# Get text
|
# Get text
|
||||||
secret=$(sed -n "/$secret:/p" /config/secrets.yaml)
|
secret=$(sed -n "/$secret:/p" /config/secrets.yaml)
|
||||||
secret=${secret#*: }
|
secret=${secret#*: }
|
||||||
@@ -87,7 +87,7 @@ do
|
|||||||
bashio::log.blue "$line"
|
bashio::log.blue "$line"
|
||||||
else
|
else
|
||||||
bashio::log.fatal "$line does not follow the structure KEY=text"
|
bashio::log.fatal "$line does not follow the structure KEY=text"
|
||||||
bashio::addon.stop
|
bashio::exit.nok
|
||||||
fi
|
fi
|
||||||
done < "/tmpfile"
|
done < "/tmpfile"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user