openpower-build-setup: Fix setting of alias
When we source the op-build-env script from within the build.sh script,
the alias that is set only available to the inner script without the
shopt -s expand_alias option.
Found on http://stackoverflow.com/a/3354931
Signed-off-by: Joel Stanley <joel@jms.id.au>
diff --git a/openpower-build-setup.sh b/openpower-build-setup.sh
index 93cd408..de73588 100755
--- a/openpower-build-setup.sh
+++ b/openpower-build-setup.sh
@@ -70,6 +70,10 @@
set -x
+# This ensures that the alias set in op-build-env is
+# avalaible in this script
+shopt -s expand_aliases
+
cd ${WORKSPACE}/op-build
# Source our build env