pkazlenka | 4690e83 | 2024-10-24 13:28:37 +0200 | [diff] [blame^] | 1 | get_timestamp() { |
2 | # "update_latest_report" depends on this pattern (it looks for '%Y' which | ||||
3 | # should match "20[0-9]{2} in this century). | ||||
4 | # Make changes in "update_latest_report" if you change timestamp here | ||||
5 | date +%Y-%m-%dT%H-%M | ||||
6 | } | ||||
7 | |||||
8 | update_latest_report_to() { | ||||
9 | cp "$1" "$(echo $1|sed s/20[0-9]\\{2\\}.*/latest.html/)" | ||||
10 | } |