How about just changing 208 to

```sh
as_root sed -i "s/^#\?\(IgnorePkg.*\)/\1 $pkg/" "$pacman_conf"
```