mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #2141 from dorfsmay/pullreq-env-simple
Prevents PATH, PYTHONPATH etc... to be re-added.
This commit is contained in:
commit
52a990ec2b
1 changed files with 3 additions and 3 deletions
|
@ -17,10 +17,10 @@ PREFIX_PYTHONPATH="$ANSIBLE_HOME/lib"
|
|||
PREFIX_PATH="$ANSIBLE_HOME/bin"
|
||||
PREFIX_MANPATH="$ANSIBLE_HOME/docs/man"
|
||||
|
||||
export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
|
||||
export PATH=$PREFIX_PATH:$PATH
|
||||
[[ $PYTHONPATH != ${PREFIX_PYTHONPATH}* ]] && export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH
|
||||
[[ $PATH != ${PREFIX_PATH}* ]] && export PATH=$PREFIX_PATH:$PATH
|
||||
export ANSIBLE_LIBRARY="$ANSIBLE_HOME/library"
|
||||
export MANPATH=$PREFIX_MANPATH:$MANPATH
|
||||
[[ $MANPATH != ${PREFIX_MANPATH}* ]] && export MANPATH=$PREFIX_MANPATH:$MANPATH
|
||||
|
||||
# Print out values unless -q is set
|
||||
|
||||
|
|
Loading…
Reference in a new issue