diff options
author | Remi Collet <remi@remirepo.net> | 2024-12-18 12:09:00 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-12-18 12:09:00 +0100 |
commit | 0ba9fff282c639b8a4aaa5a5fd5fdbe4ba168a1d (patch) | |
tree | c0045d75ae1cd79783b17404fec58fa75bce400e /mockit | |
parent | 96d42655c7fe51e3e004850ccf964dad6fe7c278 (diff) |
Diffstat (limited to 'mockit')
-rwxr-xr-x | mockit | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -38,10 +38,16 @@ fi if [ "$1" == "--list" ]; then echo "-- x86_64 queue: $($REDISCLI scard mockx) tasks --" a=$($REDISCLI smembers mockx) - [ -n "$a" ] && $REDISCLI smembers mockx || ps -ef | grep mock/mock | grep -v grep + [ -n "$a" ] && $REDISCLI smembers mockx | \ + sed -e 's/^.*-r/ /;s/rebuild/\t/' | sort || \ + ps -ef | grep mock/mock | grep -v grep + echo -e "\n-- aarch64 queue: $($REDISCLI scard mocka) tasks --" a=$($REDISCLI smembers mocka) - [ -n "$a" ] && $REDISCLI smembers mocka || ps -ef | ssh remi@ampere 'ps -ef | grep mock/mock | grep -v grep' + [ -n "$a" ] && $REDISCLI smembers mocka | \ + sed -e 's/^.*-r/ /;s/rebuild/\t/'| sort || \ + ps -ef | ssh remi@ampere 'ps -ef | grep mock/mock | grep -v grep' + exit 0 elif [ "$1" == "--clean" ]; then $REDISCLI del mockx |