Skip to content

Commit fcffb24

Browse files
patrickelectricjoaoantoniocardoso
authored andcommitted
core: start-blueos-core: Fix tmux setenv when variable is empty
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent 5eedb20 commit fcffb24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/start-blueos-core

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function create_service {
158158
# Set all necessary environment variables for the new tmux session
159159
for NAME in $(compgen -v | grep -e MAV_ -e BLUEOS_); do
160160
VALUE=${!NAME}
161-
tmux setenv -t $SESSION_NAME -g $NAME $VALUE
161+
tmux setenv -t "$SESSION_NAME" -g "$NAME" "$VALUE"
162162
done
163163

164164
# Use run_service to start the service with the memory limit

0 commit comments

Comments
 (0)