Skip to content

Commit 9003f59

Browse files
committed
feat: clean up tclis function
1 parent 53f582b commit 9003f59

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

internal/cli/bash/bash_functions.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,14 @@
212212

213213
function tclis() {
214214
while :; do
215-
docker ps -q | sort | xargs -I{} sh -c 'PROGRESS=$(docker logs --tail 1 {} | egrep -o "(Progress: [0-9.]+%)|Seeding" | sort -u | tail -1 | sed "s/^/\[/; s/$/\]/"); echo "> Container: {} ${PROGRESS}"' &&\
216-
sleep 10 &&\
217-
clear
215+
docker ps |\
216+
grep -v wireguard |\
217+
awk '{print $1}' |\
218+
grep -v CONTAINER |\
219+
sort |\
220+
xargs -I{} sh -c 'PROGRESS=$(docker logs --tail 1 {} | egrep -o "(Progress: [0-9.]+%)|Seeding" | sort -u | tail -1 | sed "s/^/\[/; s/$/\]/"); echo "> Container: {} ${PROGRESS}"' &&\
221+
sleep 10 \
222+
&& clear
218223
done
219224
}
220225

0 commit comments

Comments
 (0)