mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-21 13:20:11 +00:00
remove spaces from MLAT_USER (#150)
the readme already says not to put spaces but like this mlat will work even with spaces instead of producing errors
This commit is contained in:
parent
1c47b76be2
commit
494d963619
1 changed files with 4 additions and 1 deletions
|
@ -239,7 +239,10 @@ do
|
|||
MLAT_PARAM+=(--input-connect "${input_connect_arg:-localhost:30005}")
|
||||
|
||||
if [[ -n "${name_arg}" ]] || [[ -n "${MLAT_USER}" ]]; then
|
||||
MLAT_PARAM+=(--user \""${name_arg:-${MLAT_USER}}"\")
|
||||
# remove spaces from mlat name to avoid startup errors
|
||||
# the readme already says not to put spaces but like this mlat will work even with space
|
||||
name=$( sed -e 's/ /_/g' <<< "${name_arg:-${MLAT_USER}}")
|
||||
MLAT_PARAM+=(--user "${name}")
|
||||
else
|
||||
rnd="${RANDOM}"
|
||||
"${s6wrap[@]}" --args echo "WARNING: MLAT_USER is not set - using random number \"${rnd}\" as MLAT_USER"
|
||||
|
|
Loading…
Reference in a new issue