Crompulence / cpl-library

http://www.cpl-library.org
Other
24 stars 9 forks source link

SOURCEME.sh needs to update if already set #27

Closed edwardsmith999 closed 2 years ago

edwardsmith999 commented 2 years ago

If you call SOURCEME.sh in a cpl-library folder it uses the "pwd" as this will alway be the one. If you then call again in a new folder, it doesn't update (use case would be in /home and then you need version in /work).

Solution will be to overwrite existing path to pwd if called again from a new file.

edwardsmith999 commented 2 years ago

Updated SOURCEME.sh in latest push to provide a check for already defined path and prompt user if they wanted to update