fixed in a way that multiple run won't keep create duplicate config line...

modify in a way so that multiple run won't generate duplicate lines in config files.
Why do we need to remove this line? Can you grep below without returning an error code?

grep -v perhaps?