chrisschmitz / commandbox-hostupdater

9 stars 12 forks source link

Updated 'addNewHostname' to use an echo approach to insert a new line… #22

Closed jdaiger closed 3 years ago

jdaiger commented 3 years ago

Using 'a' command w/ sed on a mac is not inserting the new host file entry properly. Updated to use the echo 'host_to_add' >> hosts_file approach. This should ensure new entries get added to the end of the file properly.

Thanks.