Skip to content

Commit

Permalink
Default subType
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Jan 7, 2025
1 parent 70598d9 commit 756bd03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/pull_mqtt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ sudo mosquitto_sub $SERVER_OPTS -R -F "%j" -t $topic_filter |

# Trim whitespace
subFolder=$(echo $subFolder | xargs)
subType=$(echo $subType | xargs)
[[ -n $subFolder ]] || subFolder=update

[[ -n ${subFolder% } ]] || subFolder=update
subType=$(echo $subType | xargs)
[[ -n $subType ]] || subType=events

if [[ $deviceId == "" ]]; then
deviceId=empty
Expand Down

0 comments on commit 756bd03

Please sign in to comment.