contrib/makerepo: fix error writing makerepo.gitignore

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-05-27 16:27:50 +02:00
parent 4fcc8c8d24
commit d18a4ec128

View file

@ -125,7 +125,7 @@ if [[ -f ./.git/makerepo.gitignore ]]; then
fi
DEFAULT_BACKUP_PATTERN='*.[0-9][0-9][0-9][0-9][-.]*.orig'
if ! grep -q -e "$DEFAULT_BACKUP_PATTERN" "./makerepo.gitignore" ; then
if ! grep -F -q -e "$DEFAULT_BACKUP_PATTERN" "./makerepo.gitignore" ; then
echo "$DEFAULT_BACKUP_PATTERN" >> ./makerepo.gitignore
fi