return 'already started' if already started

This commit is contained in:
Siina Mashek 2024-10-14 10:50:45 +03:00
parent 83a1332f91
commit 61882cca82

View file

@ -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 () {