fix: load_path.sh tolerate per-module failure (no set -e)
This commit is contained in:
parent
07a9bc40b4
commit
eda36c8b69
@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
# 初始化所有模块的 RBAC 路径权限(调用各模块 scripts/load_path.py)
|
||||
set -e
|
||||
# 单个模块失败不阻塞其他模块
|
||||
cdir=$(cd "$(dirname "$0")" && pwd)
|
||||
for s in $(ls "$cdir"/pkgs/*/scripts/load_path.py 2>/dev/null)
|
||||
do
|
||||
echo "==> $s"
|
||||
"$cdir/py3/bin/python" "$s"
|
||||
"$cdir/py3/bin/python" "$s" || echo " WARN: $s failed"
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user