Update 99-run.sh

This commit is contained in:
Alexandre
2023-06-04 08:46:56 +02:00
committed by GitHub
parent 7ab0bf07ee
commit 291438f3fa

View File

@@ -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