mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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,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"
|
||||||
gen_egg_info > /dev/null 2>&1
|
if [ "$verbosity" = silent ] ; then
|
||||||
else
|
gen_egg_info > /dev/null 2>&1
|
||||||
gen_egg_info
|
else
|
||||||
fi
|
gen_egg_info
|
||||||
cd "$current_dir"
|
fi
|
||||||
|
cd "$current_dir"
|
||||||
|
)
|
||||||
|
|
||||||
if [ "$verbosity" != silent ] ; then
|
if [ "$verbosity" != silent ] ; then
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
|
|
Loading…
Reference in a new issue