This commit is contained in:
Gerhard Hoffmann 2023-05-25 15:08:21 +02:00
parent e0d813b34a
commit 5939060c69

View File

@ -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