distribution/tools/dashboard

23 lines
471 B
Text
Raw Normal View History

2022-02-05 14:23:32 +00:00
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
###
### A simple loop to watch the status of any active builds.
###
DELAY=${1:-10}
while true
do
clear
ACTIVE=$(find build*/.threads -name status -mmin -5 -printf "%T@ %p\n" | sort -n | awk 'END {print $NF}')
if [ "${ACTIVE}" ]
then
cat ${ACTIVE}
2022-02-05 14:23:32 +00:00
else
echo -e "\nThere are no active builds available to view."
2022-02-05 14:23:32 +00:00
fi
2023-10-12 10:45:23 +00:00
sleep ${DELAY}
2022-02-05 14:23:32 +00:00
done