Windows git运行.sh文件报错

.sh文件内容如下,
 

set -e

cd "$(dirname "${BASH_SOURCE%/*}")"

CLIENT_PROTO=../common/proto/cheerios_rpc
PROTO_CMD="python3 protoc_wrapper.py ${CLIENT_PROTO}/*.proto --python_out=./nrf_shell/proto"
if [[ "$@" == "init" ]]; then
  PROTO_CMD="ls -la ./nrf_shell/proto/*pb2* 2>&1 || ${PROTO_CMD}"
fi
eval ${PROTO_CMD} > dev/null

报错如下:

regen_proto.sh: line 10: python3: command not found
也就是最后一行报错,应该怎么改呢?

没有python环境,要么加入环境变量,或者使用绝对路径的python3

看着像是打错了

应该是 /dev/null