Skip to content

Commit

Permalink
Preserve OLDPWD
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldonh committed Jul 23, 2015
1 parent b678b98 commit c800a1c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions hacking/env-setup
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ 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
else
gen_egg_info
fi
cd "$current_dir"
(
cd "$ANSIBLE_HOME"
if [ "$verbosity" = silent ] ; then
gen_egg_info > /dev/null 2>&1
else
gen_egg_info
fi
cd "$current_dir"
)

if [ "$verbosity" != silent ] ; then
cat <<- EOF
Expand Down

0 comments on commit c800a1c

Please sign in to comment.