ublue-os / bluefin

The next generation Linux workstation, designed for reliability, performance, and sustainability.
https://projectbluefin.io
Apache License 2.0
1.09k stars 149 forks source link

Don't append source line if it exists already #1446

Closed castrojo closed 3 months ago

castrojo commented 3 months ago

bluefin-cli adds a source line to your profile. While debugging this kept appending the line to my .bashrc which was causing a syntax error after it pasted three of them.

This should check to see if it exists before adding.

https://github.com/ublue-os/bluefin/blob/04ea96c22bd0c91460365f6f4ce64de09a780527/just/bluefin-system.just#L33