diff options
author | Yves Dorfsman <yves@zioup.com> | 2013-02-20 01:12:38 -0700 |
---|---|---|
committer | Yves Dorfsman <yves@zioup.com> | 2013-02-20 01:12:38 -0700 |
commit | dfdc5bda4b186f853237ea2761798d57ba31f691 (patch) | |
tree | 67f7f33655f36a5bed2891136a9d9b88cc294b55 /hacking | |
parent | 093935ede16d4b47ea34d0bcf37797a6f7611be1 (diff) | |
download | ansible-dfdc5bda4b186f853237ea2761798d57ba31f691.tar.gz |
Prevents PATH, PYTHONPATH etc... to be re-added.
Diffstat (limited to 'hacking')
-rwxr-xr-x | hacking/env-setup | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hacking/env-setup b/hacking/env-setup index 78b05dd483..d8b5b58ee5 100755 --- a/hacking/env-setup +++ b/hacking/env-setup @@ -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 |