only run path helper when the file exists
This commit is contained in:
parent
27f2baa4da
commit
db96469bfb
@ -81,8 +81,11 @@ function _setup_env {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _path_helper {
|
function _path_helper {
|
||||||
export PATH_HELPER_RAN="$(date)"
|
if [ -f /usr/libexec/path_helper ];
|
||||||
eval "$(/usr/libexec/path_helper -s)"
|
then
|
||||||
|
export PATH_HELPER_RAN="$(date)"
|
||||||
|
eval "$(/usr/libexec/path_helper -s)"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
environment_variable_exists PATH_HELPER_RAN || _path_helper
|
environment_variable_exists PATH_HELPER_RAN || _path_helper
|
||||||
|
Loading…
Reference in New Issue
Block a user