On 03/23/2012 05:00 AM, no-re...@cfengine.com wrote: > Link to topic: https://cfengine.com/forum/read.php?3,25365,25365#msg-25365 > export PATH=$PATH:/bin:/usr/local/bin:/local/my_scripts > export PATH=$PATH:/opt/my_program:/local/my_scripts > > Is there a way to force cf-engine to only edit 1 of the lines?
I don't know how to force cfengine to only edit one of the lines, but I do see a few alternatives. Unless you care about where /local/my_scripts is in your path it doesn't really matter if its in there multiple times. I understand if you don't want local/my_scripts to come before /opt/my_program. You could delete all instances of PATH and ensure only one PATH setting line exists, or you could just insert an additional PATH line for /local/my_scripts. -- Nick Anderson <n...@cmdln.org> _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine