|
|
|
@ -39,6 +39,14 @@ check_software "git"
|
|
|
|
|
# 检查某个Python库
|
|
|
|
|
#check_python_library "numpy"
|
|
|
|
|
|
|
|
|
|
# 检查 libcamera-still 命令是否存在
|
|
|
|
|
if command -v libcamera-still >/dev/null 2>&1; then
|
|
|
|
|
echo "libcamera-still 命令存在"
|
|
|
|
|
else
|
|
|
|
|
echo "libcamera-still 命令不存在"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 设置仓库URL和本地目录
|
|
|
|
|
repo_url="https://bdgit.educoder.net/pv2ajsu8k/smp_pc_20240625.git"
|
|
|
|
@ -89,7 +97,7 @@ if [ -f "smp_init.sh" ]; then
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# 执行smp_init.sh
|
|
|
|
|
./smp_init.sh
|
|
|
|
|
# ./smp_init.sh
|
|
|
|
|
echo "smp_init.sh 执行完成"
|
|
|
|
|
else
|
|
|
|
|
echo "smp_init.sh 不存在"
|
|
|
|
|