Merge pull request #11704 from sheldonh/env-setup-preserve-oldpwd
Preserve OLDPWD in hacking/env-setup
This commit is contained in:
commit
5d51f3abda
1 changed files with 9 additions and 7 deletions
|
@ -53,6 +53,7 @@ if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
|
|||
else
|
||||
current_dir="$ANSIBLE_HOME"
|
||||
fi
|
||||
(
|
||||
cd "$ANSIBLE_HOME"
|
||||
if [ "$verbosity" = silent ] ; then
|
||||
gen_egg_info > /dev/null 2>&1
|
||||
|
@ -60,6 +61,7 @@ else
|
|||
gen_egg_info
|
||||
fi
|
||||
cd "$current_dir"
|
||||
)
|
||||
|
||||
if [ "$verbosity" != silent ] ; then
|
||||
cat <<- EOF
|
||||
|
|
Loading…
Reference in a new issue