diff --git a/README-CN.md b/README-CN.md index 6fd9ca6b..30cf2144 100644 --- a/README-CN.md +++ b/README-CN.md @@ -45,7 +45,7 @@ sh /usr/local/oceanbase-diagnostic-tool/init.sh ```shell pip3 install -r requirements3.txt -sh dev_init.sh +./dev_init.sh source ~/.bashrc ``` diff --git a/README.md b/README.md index 02c7a5c4..4a079434 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ To install obdiag on Python >= 3.8, run these commands: ```shell pip3 install -r requirements3.txt -sh dev_init.sh +./dev_init.sh source ~/.bashrc ``` diff --git a/dev_init.sh b/dev_init.sh old mode 100644 new mode 100755 index b9cb8692..53f9c27b --- a/dev_init.sh +++ b/dev_init.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PROJECT_PATH=$(cd "$(dirname "$0")"; pwd) WORK_DIR=$(readlink -f "$(dirname ${BASH_SOURCE[0]})") diff --git a/init.sh b/init.sh index adb9a90e..766b82d5 100755 --- a/init.sh +++ b/init.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ $# == 1 && $1 == "-f" ]]; then FORCE_DEPLOY="1" diff --git a/rpm/build.sh b/rpm/build.sh index d8fa1785..5ea86c23 100755 --- a/rpm/build.sh +++ b/rpm/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash python_bin='python' W_DIR=`pwd` diff --git a/rpm/obdiag-build.sh b/rpm/obdiag-build.sh index 99be94e5..facb3e6b 100755 --- a/rpm/obdiag-build.sh +++ b/rpm/obdiag-build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PROJECT_DIR=$1 PROJECT_NAME=$2