Merge pull request #2177 from fewtarius/dev
Increase default interval, don't exit if there's nothing to see.
This commit is contained in:
commit
c85d586720
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue