Skip to content

Commit

Permalink
fix mismerge, set CHIP_ROOT unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Walker committed Oct 20, 2020
1 parent 829f33c commit fb33d35
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@
# limitations under the License.
#

if [[ ! -d ${CHIP_ROOT} ]]; then
if [[ -n ${BASH_SOURCE[0]} ]]; then
CHIP_ROOT=$(cd "${BASH_SOURCE[0]%/*}/.." && pwd)
else
CHIP_ROOT=$(cd "${0%/*}/.." && pwd)
fi
fi

if [[ -n ${BASH_SOURCE[0]} ]]; then
CHIP_ROOT=$(cd "${BASH_SOURCE[0]%/*}/.." && pwd)
me=${BASH_SOURCE[0]##*/}
else
CHIP_ROOT=$(cd "${0%/*}/.." && pwd)
me=${0##*/}
fi

Expand Down

0 comments on commit fb33d35

Please sign in to comment.