Merge pull request #2177 from fewtarius/dev

Increase default interval, don't exit if there's nothing to see.
This commit is contained in:
fewtarius 2023-10-11 22:01:01 -04:00 committed by GitHub
commit c85d586720
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,18 +6,17 @@
### A simple loop to watch the status of any active builds.
###
DELAY=${1:-5}
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
clear
cat ${ACTIVE}
sleep ${DELAY}
else
echo -e "\nThere are no active builds available to view."
exit 1
fi
done