From f399bfe3e11d8655a3d5e300f2b39a20988c6a9d Mon Sep 17 00:00:00 2001 From: Bo Zhang Date: Tue, 15 Jun 2021 14:22:42 +0800 Subject: [PATCH] Use `bash` instead of `sh` in README and build.sh (#2) `build.sh` uses bash-specific array creation syntax, which may not work with `/bin/sh`. Change it to `bash` to avoid confusion: --- README.md | 6 +++--- build.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 99ff27d35e..ac1f946c4b 100644 --- a/README.md +++ b/README.md @@ -40,17 +40,17 @@ OceanBase Database is under [MulanPubL - 2.0](https://license.coscl.org.cn/Mulan ### debug mode ```sh -sh build.sh debug --init --make +bash build.sh debug --init --make ``` ### release mode ```sh -sh build.sh release --init --make +bash build.sh release --init --make ``` ### rpm packages ```sh -sh build.sh rpm --init && cd build_rpm && make -j16 rpm +bash build.sh rpm --init && cd build_rpm && make -j16 rpm ``` ## Contributing diff --git a/build.sh b/build.sh index 98f91e4ccc..934d2f2990 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash TOPDIR="$(dirname $(readlink -f "$0"))" BUILD_SH=${TOPDIR}/build.sh DEP_DIR=${TOPDIR}/deps/3rd/usr/local/oceanbase/deps/devel -- GitLab