On Thu, Nov 12, 2020 at 02:55:08PM +0800, Liu Yinsi wrote:
when execute 3-code/dev-env, error message as follows:
./dev-env: line 45: ./os/openEuler: No such file or directory
Signed-off-by: Liu Yinsi liuyinsi@163.com
sparrow/3-code/dev-env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sparrow/3-code/dev-env b/sparrow/3-code/dev-env index 77027d9..98da280 100755 --- a/sparrow/3-code/dev-env +++ b/sparrow/3-code/dev-env @@ -42,4 +42,5 @@ EOF
source /etc/os-release
-. $(dirname ${BASH_SOURCE[0]})/os/${ID} +path=$(dirname ${BASH_SOURCE[0]})/os/${ID}
+[ -x "$path" ] && . "$path"
cd / ./$CCI_SRC/sparrow/3-code/dev-env
if use relative path,will error
. "$path" no such file
Thanks, Shenwei
2.23.0