From cc3e3c9c1233cb41150704c5e56a5586f385839e Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 25 Mar 2026 18:57:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=83=BD=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E9=87=8D=E5=91=BD=E5=90=8D=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/usr/bin/amber-pm-convert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/bin/amber-pm-convert b/src/usr/bin/amber-pm-convert index 57324aa..de6341a 100755 --- a/src/usr/bin/amber-pm-convert +++ b/src/usr/bin/amber-pm-convert @@ -653,7 +653,7 @@ log.info "搜索并清理 .dpkg-new 文件..." # 在 core 目录下查找并删除所有以 .dpkg-new 结尾的文件 # 重命名 .dpkg-new 文件(去掉后缀) log.info "处理 .dpkg-new 文件,去掉后缀..." -find "$CRAFT_DIR/core" -name "*.dpkg-new" -type f 2>/dev/null | while read -r file; do +find "$CRAFT_DIR/core" -name "*.dpkg-new" 2>/dev/null | while read -r file; do newfile="${file%.dpkg-new}" log.info "重命名: $file -> $newfile" sudo mv -f "$file" "$newfile"