Skip to content

Commit 089cdd6

Browse files
authored
Add command to update the date (#282)
1 parent 05d78ef commit 089cdd6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/srv_candidate_server.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ cat \$(cat /tmp/datasets.lis) | grep -v '^#' | wc -l | awk '{printf "%d\n", \$1}
6767
# 6. Append all snippets once the total was written:
6868
cat /tmp/gmt_data_server.txt >> ${CANDIDATE_DIR}/gmt_data_server${DEBUG}.txt
6969
70-
# 7. Cleanup
70+
# 7. Update the date in the gmt_data_server.txt/ file.
71+
sed "s/THEDATE/$(date '+%Y-%m-%d')/g" -i ${CANDIDATE_DIR}/gmt_data_server${DEBUG}.txt
72+
73+
# 8. Cleanup
7174
rm -rf /tmp/gmt_data_server.txt /tmp/datasets.lis /tmp/candidate.sh
7275
EOF
7376

0 commit comments

Comments
 (0)