diff options
author | Jason M. Bills <jason.m.bills@intel.com> | 2022-01-06 23:59:39 +0300 |
---|---|---|
committer | Jason M. Bills <jason.m.bills@intel.com> | 2022-01-06 23:59:39 +0300 |
commit | 32777eec25d2c527a62e5ffab90a3dfef35855aa (patch) | |
tree | 588a90a6fe9fb0b35c7ce23ea3bd79fa5151ccde /openbmc-env | |
parent | 61f1ca1b31a9a1108e9e7f71e47fdc19beb0490b (diff) | |
parent | 5cc2f81c5b66da00cad24e18b0d23442af060c3f (diff) | |
download | openbmc-32777eec25d2c527a62e5ffab90a3dfef35855aa.tar.xz |
Merge tag '0.86' of firmware.bmc.openbmc.yocto.openbmc into update
Diffstat (limited to 'openbmc-env')
-rw-r--r-- | openbmc-env | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/openbmc-env b/openbmc-env index 03e8628e1..1d06dcfc0 100644 --- a/openbmc-env +++ b/openbmc-env @@ -1,16 +1,18 @@ -if [ -n "$BASH_SOURCE" ]; then - OBMCROOT="`dirname $BASH_SOURCE`" +#!/bin/bash +if [ -n "${BASH_SOURCE[0]}" ]; then + OBMCROOT="$(dirname "${BASH_SOURCE[0]}")" elif [ -n "$ZSH_NAME" ]; then - OBMCROOT="`dirname $0`" + OBMCROOT="$(dirname "$0")" else - OBMCROOT="`pwd`" + OBMCROOT="$(pwd)" fi -if [ -f $OBMCROOT/customrc ]; then +if [ -f "$OBMCROOT/customrc" ]; then echo "### Sourcing customrc ###" - . $OBMCROOT/customrc + # shellcheck source=/dev/null + . "$OBMCROOT/customrc" fi echo "### Initializing OE build env ###" -. $OBMCROOT/oe-init-build-env - +# shellcheck source=oe-init-build-env +. "$OBMCROOT/oe-init-build-env" |