Skip to content

Commit 72702fe

Browse files
committed
added date to the beggining of the message in iso-8601
1 parent c0ad69d commit 72702fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ do
55
sleep $waitTime &
66
wait $!
77
instruction=$(shuf -i 0-4 -n 1)
8-
d=`date`
8+
d=`date --iso-8601=seconds`
99
case "$instruction" in
10-
"1") echo "ERROR ($d) something happened in this execution."
10+
"1") echo "$d ERROR something happened in this execution."
1111
;;
12-
"2") echo "INFO ($d) takes the value and converts it to string."
12+
"2") echo "$d INFO takes the value and converts it to string."
1313
;;
14-
"3") echo "WARN ($d) variable not in use."
14+
"3") echo "$d WARN variable not in use."
1515
;;
16-
"4") echo "DEBUG ($d) first loop completed."
16+
"4") echo "$d DEBUG first loop completed."
1717
;;
1818
esac
1919
done

0 commit comments

Comments
 (0)