Skip to content
Snippets Groups Projects
Commit 5b872375 authored by nimrod's avatar nimrod
Browse files

wb: fix list logic.

parent 4ad9ac3b
Branches
No related tags found
No related merge requests found
......@@ -33,7 +33,9 @@ _kill() {
}
list() {
if in_toolbox && is_tmux_running
if is_tmux_running
then
if in_toolbox
then
tmux -L "$TMUX_SOCKET" list-sessions | awk -F: '{print $1}'
elif container_exists
......@@ -41,6 +43,7 @@ list() {
toolbox run --container "$CONTAINER" -- \
tmux -L "$TMUX_SOCKET" list-sessions | awk -F: '{print $1}'
fi
fi
}
image_exists() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment