From b9c8b09c1e3d3df23da3334536c9f8090b1bd15d Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 22 Aug 2021 10:28:30 +0200 Subject: Add status command --- pool.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pool.sh') diff --git a/pool.sh b/pool.sh index 7336545..6f3262f 100755 --- a/pool.sh +++ b/pool.sh @@ -121,6 +121,11 @@ wait_pool() { done } +status() { + refresh + cat "${POOL_STATUS}" +} + list_output() { refresh find "${POOL}" -name "out_*" @@ -214,6 +219,10 @@ case "$CMD" in check_pool resume ;; + "status") + check_pool + status + ;; *) abort "Command $CMD unknown" esac -- cgit v1.2.3