mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-20 22:39:14 +02:00
Update 99-run.sh
This commit is contained in:
@@ -49,7 +49,7 @@ cd /data || true
|
|||||||
# Fetch commands
|
# Fetch commands
|
||||||
CMD_ARGUMENTS="$(bashio::config "CMD_ARGUMENTS")"
|
CMD_ARGUMENTS="$(bashio::config "CMD_ARGUMENTS")"
|
||||||
IFS=';'
|
IFS=';'
|
||||||
# Shellcheck disable=SC2162
|
# shellcheck disable=SC2162
|
||||||
read -a strarr <<< "$CMD_ARGUMENTS"
|
read -a strarr <<< "$CMD_ARGUMENTS"
|
||||||
|
|
||||||
# Sanitizes commands
|
# Sanitizes commands
|
||||||
@@ -67,9 +67,9 @@ trim() {
|
|||||||
for val in "${strarr[@]}";
|
for val in "${strarr[@]}";
|
||||||
do
|
do
|
||||||
#Removes whitespaces
|
#Removes whitespaces
|
||||||
val="$(trim $val)"
|
val="$(trim "$val")"
|
||||||
echo " "
|
echo " "
|
||||||
bashio::log.info "Starting the app with arguments $val"
|
bashio::log.info "Starting the app with arguments \"$val\""
|
||||||
echo " "
|
echo " "
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
echo "$val" | xargs docker-entrypoint.sh
|
echo "$val" | xargs docker-entrypoint.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user