mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-10-16 05:50:44 +00:00
Compare commits
2 commits
568228f19d
...
d126ede032
Author | SHA1 | Date | |
---|---|---|---|
|
d126ede032 | ||
|
494d963619 |
2 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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