iop: match against the full feed name when updating feeds.conf

Fix bug that is causing the wrong hash to be updated in case one feed
name happens to be a substring of another feed name.
This commit is contained in:
Erik Karlsson 2022-02-17 13:19:28 +01:00
parent 435aafe744
commit eab01d27dd

View file

@ -449,7 +449,7 @@ insert_feed_hash_in_feeds_config()
local feed=$1
local TO=$(cd feeds/${feed}; git rev-parse HEAD)
sed -i feeds.conf -e "/ ${feed}/ s/\(.*\)[;^].*/\1^${TO}/"
sed -i feeds.conf -e "/ ${feed} / s/\(.*\)[;^].*/\1^${TO}/"
git add feeds.conf
}