From fe56c2c73e293aaa2ca332fb7a877571f3a8efc7 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 26 May 2023 09:57:22 +0200 Subject: [PATCH] Add date to each line in checkout_history-file --- .githooks/post-checkout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index 130fec3..7646424 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -19,7 +19,6 @@ write_log_file () { if ! grep -Eq "$line" $CHECKOUT_HISTORY_FILE; then # line not found. first checkout of this branch (on this PSA). # mark dc and print-templates to be downloaded by update-tool. - echo $line >> $CHECKOUT_HISTORY_FILE echo "DOWNLOAD, /etc/dc/dc2c.4.21.bin, $now, N/A" >> $GIT_UPDATE_LOG echo "DOWNLOAD, /etc/psa_config/DC2C_print01.json, $now, N/A" >> $GIT_UPDATE_LOG echo "DOWNLOAD, /etc/psa_config/DC2C_print02.json, $now, N/A" >> $GIT_UPDATE_LOG @@ -42,6 +41,7 @@ write_log_file () { else echo "Found existing line: $line. Do nothing" fi + echo "$line @$now" >> $CHECKOUT_HISTORY_FILE else echo "*******************************************************" echo " $CHECKOUT_HISTORY_FILE DOES NOT EXIST !!! "