1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-10-16 05:50:44 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
fredclausen
d126ede032 [create-pull-request] automated change 2024-10-13 01:54:29 +00:00
wiedehopf
494d963619
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
2024-10-09 06:50:22 -04:00
2 changed files with 8 additions and 5 deletions

View file

@ -1,7 +1,7 @@
repos:
# lint yaml, line and whitespace
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
@ -13,7 +13,7 @@ repos:
# lint the dockerfiles
- repo: https://github.com/hadolint/hadolint
rev: v2.13.0-beta
rev: v2.13.1-beta
hooks:
- id: hadolint
@ -41,7 +41,7 @@ repos:
- id: shellcheck
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.29.2
rev: 0.29.4
hooks:
- id: check-github-actions
- id: check-github-workflows
@ -54,7 +54,7 @@ repos:
# lint python formatting
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black

View file

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