From 09e556e9a45fcdec1bd9260fa8a781986498e67f Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Sat, 10 Jan 2015 18:10:11 -0800 Subject: [PATCH] Get rid of bash compound command to make more portable --- hacking/env-setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hacking/env-setup b/hacking/env-setup index e5754ffc95..6b19f46510 100644 --- a/hacking/env-setup +++ b/hacking/env-setup @@ -18,9 +18,9 @@ PREFIX_PYTHONPATH="$ANSIBLE_HOME/lib" PREFIX_PATH="$ANSIBLE_HOME/bin" PREFIX_MANPATH="$ANSIBLE_HOME/docs/man" -[[ $PYTHONPATH != ${PREFIX_PYTHONPATH}* ]] && export PYTHONPATH=$PREFIX_PYTHONPATH:$PYTHONPATH -[[ $PATH != ${PREFIX_PATH}* ]] && export PATH=$PREFIX_PATH:$PATH -[[ $MANPATH != ${PREFIX_MANPATH}* ]] && export MANPATH=$PREFIX_MANPATH:$MANPATH +expr "$PYTHONPATH" : "${PREFIX_PYTHONPATH}.*" > /dev/null || export PYTHONPATH="$PREFIX_PYTHONPATH:$PYTHONPATH" +expr "$PATH" : "${PREFIX_PATH}.*" > /dev/null || export PATH="$PREFIX_PATH:$PATH" +expr "$MANPATH" : "${PREFIX_MANPATH}.*" > /dev/null || export MANPATH="$PREFIX_MANPATH:$MANPATH" # # Generate egg_info so that pkg_resources works