Skip to content

Commit

Permalink
Allow station IDs with more than 6 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored Oct 24, 2023
1 parent 6099659 commit 39edf97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/50-radarvirtuel
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fi
# check FEEDER_KEY
keyhash="${FEEDER_KEY##*:}"
stid="${FEEDER_KEY%%:*}"
if [[ ! ${keyhash} =~ ^[a-fA-F0-9]{32}$ ]] || [[ ! ${stid} =~ [^0-9A-Za-z]* ]] || [[ "${#stid}" -gt "6" ]] || [[ "${#stid}" -lt "4" ]]; then
if [[ ! ${keyhash} =~ ^[a-fA-F0-9]{32}$ ]] || [[ ! ${stid} =~ [^0-9A-Za-z]* ]] || [[ "${#stid}" -lt "4" ]]; then
s6wrap --quiet --prepend="${APPNAME}" --timestamps --args cat <<EOF
|--------------------------------------|
| STOP !!!! |
Expand Down

1 comment on commit 39edf97

@kx1t
Copy link
Member Author

@kx1t kx1t commented on 39edf97 Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix for #45

Please sign in to comment.