File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,7 @@ set -x
115115
116116# 设置输出的镜像名字 maixcam2-2025-04-16-maixpy-v4.11.0
117117date_now=$( date +" %Y-%m-%d" )
118- if [[ " $whl_path " == * MaixPy* ]]; then
119- maixpy_version=$( echo " $whl_path " | grep -oP ' (?<=MaixPy)[^ ]+' )
120- else
121- maixpy_version=$( echo " $whl_path " | grep -oP ' (?<=maixpy)[^ ]+' )
122- fi
118+ maixpy_version=$( echo " $whl_path " | sed -E ' s/.*-([0-9]+\.[0-9]+\.[0-9]+)-.*/\1/' )
123119os_version_str=${board_name} -${date_now} -maixpy-v${maixpy_version}
124120
125121
Original file line number Diff line number Diff line change @@ -57,9 +57,15 @@ if [ ! -f "$delete_first_files" ]; then
5757 exit 1
5858fi
5959
60-
60+ echo " Umounting raw rootfs"
61+ umount tmp2/rootfs
62+ if [ $? -ne 0 ]; then
63+ echo " Failed to unmount tmp2/rootfs"
64+ exit 2
65+ fi
6166rm -rf tmp2/*
6267mkdir -p tmp2
68+ chmod 777 tmp2
6369
6470# if builtin_files is a xz or tar.xz file, unzip it to tmp2/builtin_files
6571if [[ " $builtin_files " == * .tar.xz ]]; then
You can’t perform that action at this time.
0 commit comments