mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-10-16 13:50:46 +00:00
Compare commits
3 commits
cd08ed4199
...
3d9e64424e
Author | SHA1 | Date | |
---|---|---|---|
|
3d9e64424e | ||
|
d126ede032 | ||
|
494d963619 |
2 changed files with 6 additions and 3 deletions
|
@ -41,7 +41,7 @@ repos:
|
||||||
- id: shellcheck
|
- id: shellcheck
|
||||||
|
|
||||||
- repo: https://github.com/sirosen/check-jsonschema
|
- repo: https://github.com/sirosen/check-jsonschema
|
||||||
rev: 0.29.3
|
rev: 0.29.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-github-actions
|
- id: check-github-actions
|
||||||
- id: check-github-workflows
|
- id: check-github-workflows
|
||||||
|
@ -54,7 +54,7 @@ repos:
|
||||||
|
|
||||||
# lint python formatting
|
# lint python formatting
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 24.8.0
|
rev: 24.10.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
|
|
|
@ -239,7 +239,10 @@ do
|
||||||
MLAT_PARAM+=(--input-connect "${input_connect_arg:-localhost:30005}")
|
MLAT_PARAM+=(--input-connect "${input_connect_arg:-localhost:30005}")
|
||||||
|
|
||||||
if [[ -n "${name_arg}" ]] || [[ -n "${MLAT_USER}" ]]; then
|
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
|
else
|
||||||
rnd="${RANDOM}"
|
rnd="${RANDOM}"
|
||||||
"${s6wrap[@]}" --args echo "WARNING: MLAT_USER is not set - using random number \"${rnd}\" as MLAT_USER"
|
"${s6wrap[@]}" --args echo "WARNING: MLAT_USER is not set - using random number \"${rnd}\" as MLAT_USER"
|
||||||
|
|
Loading…
Reference in a new issue