Skip to content

Commit

Permalink
restore the common.sh file
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangLe2016 committed Dec 5, 2024
1 parent 56893da commit 4002d9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
8 changes: 1 addition & 7 deletions android/build-commissioner-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#

if [ "$(uname)" = "Linux" ]; then
echo "OS is Linux"
readonly CUR_DIR="$(dirname "$(realpath -s "$0")")"
elif [ "$(uname)" = "Darwin" ]; then
echo "OS is Darwin"
readonly CUR_DIR="$(dirname "$(realpath "$0")")"
fi
readonly CUR_DIR="$(dirname "$(realpath "$0")")"

set -e

Expand Down
7 changes: 2 additions & 5 deletions script/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ if [ "$(uname)" = "Linux" ]; then
echo "Did you forget to add '/usr/bin' to beginning of your PATH?"
exit 1
}

readonly CUR_DIR="$(dirname "$(realpath -s "$0")")"

elif [ "$(uname)" = "Darwin" ]; then
echo "OS is Darwin"

Expand All @@ -132,13 +129,13 @@ elif [ "$(uname)" = "Darwin" ]; then
brew unlink cmake
brew install cmake --HEAD
}

readonly CUR_DIR="$(dirname "$(realpath "$0")")"
else
echo "platform $(uname) is not fully supported"
exit 1
fi

readonly CUR_DIR="$(dirname "$(realpath "$0")")"

cd "${CUR_DIR}/.."
if [ "${WITH_CCM}" = "1" ]; then
git submodule update --init --recursive --depth=1 --progress
Expand Down

0 comments on commit 4002d9d

Please sign in to comment.