Skip to content

Commit

Permalink
core: start-blueos-core: Fix tmux setenv when variable is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric authored and joaoantoniocardoso committed Jan 11, 2025
1 parent 5eedb20 commit fcffb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/start-blueos-core
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function create_service {
# Set all necessary environment variables for the new tmux session
for NAME in $(compgen -v | grep -e MAV_ -e BLUEOS_); do
VALUE=${!NAME}
tmux setenv -t $SESSION_NAME -g $NAME $VALUE
tmux setenv -t "$SESSION_NAME" -g "$NAME" "$VALUE"
done

# Use run_service to start the service with the memory limit
Expand Down

0 comments on commit fcffb24

Please sign in to comment.