Skip to content

Commit

Permalink
Fixed grep for session name
Browse files Browse the repository at this point in the history
  • Loading branch information
glo47154 committed Jun 16, 2023
1 parent 34621b6 commit d5800f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/m2d
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ function _m2d_sync ()
local sync_web="m2d-web$(_m2d_env_get_parameter $env_file M2D_PROJECT_SUFFIX)"
case $action in
'start')
if [[ -n $(mutagen sync list | grep $sync_name) ]]; then
if [[ -n $(mutagen sync list | grep "^Name: $sync_name$") ]]; then
mutagen sync resume $sync_name
else
mutagen sync create --name=$sync_name \
Expand Down

0 comments on commit d5800f3

Please sign in to comment.