2022-02-05 14:23:32 +00:00
|
|
|
#!/bin/bash
|
2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2023-10-12 01:53:22 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
### A simple loop to watch the status of any active builds.
|
|
|
|
###
|
|
|
|
|
2023-10-12 01:58:10 +00:00
|
|
|
DELAY=${1:-10}
|
2023-10-12 01:53:22 +00:00
|
|
|
|
|
|
|
while true
|
|
|
|
do
|
2023-10-12 01:58:10 +00:00
|
|
|
clear
|
2023-10-12 01:53:22 +00:00
|
|
|
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
|
2023-10-12 01:53:22 +00:00
|
|
|
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
|