diff --git a/Documents/bin/update-wb b/Documents/bin/update-wb index 9d79d01acbe4b1b7001b62ade4fe4ae0754eccf5..ac456580351f03b09c400082a310ab5acf773cfe 100755 --- a/Documents/bin/update-wb +++ b/Documents/bin/update-wb @@ -14,13 +14,13 @@ is_latest() { } update() { - if [ -S "/tmp/tmux-$(id -u)/workbench" ] + if [ -S "/tmp/tmux-$(id -u)/workbench" ] && pgrep tmux >/dev/null then toolbox run --container workbench -- tmux -L workbench kill-server fi toolbox rm --force "$CONTAINER" 2>/dev/null || true podman image prune --filter 'label=com.github.containers.toolbox=true' --force - toolbox create --image "$IMAGE" + yes | toolbox create --image "$IMAGE" } if [ "$(hostname)" = 'toolbox' ]