Merge pull request #11704 from sheldonh/env-setup-preserve-oldpwd

Preserve OLDPWD in hacking/env-setup
This commit is contained in:
Brian Coca 2015-07-23 07:40:35 -04:00
commit 5d51f3abda

View file

@ -53,13 +53,15 @@ if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
else else
current_dir="$ANSIBLE_HOME" current_dir="$ANSIBLE_HOME"
fi fi
cd "$ANSIBLE_HOME" (
if [ "$verbosity" = silent ] ; then cd "$ANSIBLE_HOME"
if [ "$verbosity" = silent ] ; then
gen_egg_info > /dev/null 2>&1 gen_egg_info > /dev/null 2>&1
else else
gen_egg_info gen_egg_info
fi fi
cd "$current_dir" cd "$current_dir"
)
if [ "$verbosity" != silent ] ; then if [ "$verbosity" != silent ] ; then
cat <<- EOF cat <<- EOF