From dfdc5bda4b186f853237ea2761798d57ba31f691 Mon Sep 17 00:00:00 2001 From: Yves Dorfsman Date: Wed, 20 Feb 2013 01:12:38 -0700 Subject: [PATCH] Prevents PATH, PYTHONPATH etc... to be re-added. --- hacking/env-setup | 6 +++--- 1 file 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