aboutsummaryrefslogtreecommitdiffstats
path: root/clock.sh
diff options
context:
space:
mode:
authorTom <thomas.verin@sonarsource.com>2017-01-11 10:10:21 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-01-12 16:20:38 +0100
commit2ea17a6389e9e43c9f066a902b0b18c7e08ed3ba (patch)
tree227787bf91937f85161ac8e78d96a949baf7de65 /clock.sh
parent1dcd206d10922b8aa889b094adc2aec06cc050d9 (diff)
downloadsonarqube-2ea17a6389e9e43c9f066a902b0b18c7e08ed3ba.tar.gz
sonarqube-2ea17a6389e9e43c9f066a902b0b18c7e08ed3ba.zip
BUILD: display the date every minute in travis builds
Diffstat (limited to 'clock.sh')
-rwxr-xr-xclock.sh14
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