From affc74e711a487ab6ea187c7483cc3b7cd7357b9 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 25 May 2023 15:01:15 +0200 Subject: [PATCH] Testing --- .githooks/post-checkout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index c8a03f3..a3ba424 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -11,7 +11,7 @@ if [ -f $ch_file ]; then 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 + 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 fi