Preserve OLDPWD

This commit is contained in:
Sheldon Hearn 2015-07-23 11:24:30 +02:00
parent b678b9828c
commit c800a1c68a

View file

@ -53,6 +53,7 @@ if [ "$ANSIBLE_HOME" != "$PWD" ] ; then
else else
current_dir="$ANSIBLE_HOME" current_dir="$ANSIBLE_HOME"
fi fi
(
cd "$ANSIBLE_HOME" cd "$ANSIBLE_HOME"
if [ "$verbosity" = silent ] ; then if [ "$verbosity" = silent ] ; then
gen_egg_info > /dev/null 2>&1 gen_egg_info > /dev/null 2>&1
@ -60,6 +61,7 @@ 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