File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -662,7 +662,7 @@ if [[ "$OFFLINE" != "True" ]]; then
662662fi
663663
664664# Do the ugly hacks for broken packages and distros
665- $TOP_DIR /tools/fixup_stuff.sh
665+ source $TOP_DIR /tools/fixup_stuff.sh
666666
667667
668668# Extras Pre-install
Original file line number Diff line number Diff line change 2020# - pre-install hgtools to work around a bug in RHEL6 distribute
2121# - install nose 1.1 from EPEL
2222
23- set -o errexit
24- set -o xtrace
23+ # If TOP_DIR is set we're being sourced rather than running stand-alone
24+ # or in a sub-shell
25+ if [[ -z " $TOP_DIR " ]]; then
26+ set -o errexit
27+ set -o xtrace
2528
26- # Keep track of the current directory
27- TOOLS_DIR=$( cd $( dirname " $0 " ) && pwd)
28- TOP_DIR=$( cd $TOOLS_DIR /..; pwd)
29+ # Keep track of the current directory
30+ TOOLS_DIR=$( cd $( dirname " $0 " ) && pwd)
31+ TOP_DIR=$( cd $TOOLS_DIR /..; pwd)
2932
30- # Change dir to top of devstack
31- cd $TOP_DIR
33+ # Change dir to top of devstack
34+ cd $TOP_DIR
3235
33- # Import common functions
34- source $TOP_DIR /functions
36+ # Import common functions
37+ source $TOP_DIR /functions
3538
36- FILES=$TOP_DIR /files
39+ FILES=$TOP_DIR /files
40+ fi
3741
3842# Keystone Port Reservation
3943# -------------------------
You can’t perform that action at this time.
0 commit comments