diff options
author | Tom <thomas.verin@sonarsource.com> | 2017-01-11 10:10:21 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-01-12 16:20:38 +0100 |
commit | 2ea17a6389e9e43c9f066a902b0b18c7e08ed3ba (patch) | |
tree | 227787bf91937f85161ac8e78d96a949baf7de65 /clock.sh | |
parent | 1dcd206d10922b8aa889b094adc2aec06cc050d9 (diff) | |
download | sonarqube-2ea17a6389e9e43c9f066a902b0b18c7e08ed3ba.tar.gz sonarqube-2ea17a6389e9e43c9f066a902b0b18c7e08ed3ba.zip |
BUILD: display the date every minute in travis builds
Diffstat (limited to 'clock.sh')
-rwxr-xr-x | clock.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clock.sh b/clock.sh new file mode 100755 index 00000000000..91c2c5868b3 --- /dev/null +++ b/clock.sh @@ -0,0 +1,14 @@ +#!/bin/bash +RED='\033[0;31m' +NC='\033[0m' # No Color + +echo "start the clock" +while [ ! -f stop ]; do + #echo "File not found!" + seconds=60; date1=$((`date +%s` + $seconds)); + while [ "$date1" -ge `date +%s` ]; do + #echo -ne "$(date -u --date @$(($date1 - `date +%s` )) +%H:%M:%S)\r"; > /dev/null + : #busy wait + done + printf "${RED}############# `date` ############${NC}\n" +done
\ No newline at end of file |