return 'already started' if already started
This commit is contained in:
parent
83a1332f91
commit
61882cca82
1 changed files with 6 additions and 2 deletions
|
@ -36,8 +36,12 @@ start_sync () {
|
|||
}
|
||||
|
||||
stop_sync () {
|
||||
tmux send-keys -t $session C-c exit C-m
|
||||
echo stopped
|
||||
if check_session 0; then
|
||||
echo inactive
|
||||
else
|
||||
tmux send-keys -t $session C-c exit C-m
|
||||
echo stopped
|
||||
fi
|
||||
}
|
||||
|
||||
status () {
|
||||
|
|
Loading…
Reference in a new issue