From 5939060c69d57e98b0062eff1744fdab9db03f99 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 25 May 2023 15:08:21 +0200 Subject: [PATCH] Testing --- .githooks/post-checkout | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index 58017dd..ed8d9bc 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -10,8 +10,8 @@ if [ -f $ch_file ]; then readonly repo=$(basename $(git rev-parse --show-toplevel)) readonly branch=$(git log --graph --all --decorate $2 | head -n 1 | sed -E -e 's/(.*?)(\(.*\))/\2/g') line="$repo:$branch" - echo $line - if ! grep -Eq "\"$line\"" $ch_file; then + echo "line=$line" + if ! grep -Eq "$line" $ch_file; then echo $line >> $ch_file echo "DOWNLOAD, /etc/dc/dc2c.4.21.bin, $(date +%Y-%m-%dT%T), N/A" >> $update_log_file else