-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize env_prepend/append_path functions
Replace grep test with remove + add logic to prevent duplicates. Because this approach does not need any external functions it's about 4 to 5 times faster then the original implementation. Also added some error logging in case the provided path is not a valid directory.
- Loading branch information
G. Roggemans
committed
Mar 5, 2018
1 parent
d54db30
commit 159325b
Showing
1 changed file
with
23 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters