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

wb: fix list logic.

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