Write $line to checkout_history-file only once

This commit is contained in:
Gerhard Hoffmann 2023-06-20 16:06:33 +02:00
parent 68d5205530
commit 7a790e442f

View File

@ -40,10 +40,10 @@ write_log_file () {
done done
fi fi
fi fi
echo "$line" >> $CHECKOUT_HISTORY_FILE
else else
echo "Found existing line: $line. Do nothing" echo "Found existing line: $line. Do nothing"
fi fi
echo "$line" >> $CHECKOUT_HISTORY_FILE
# echo "$line @$now" >> $CHECKOUT_HISTORY_FILE # echo "$line @$now" >> $CHECKOUT_HISTORY_FILE
else else
echo "*******************************************************" echo "*******************************************************"