unlock before rm

Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
shenmo 2025-04-12 18:12:26 +00:00 committed by Gitee
parent 2a6e9046e7
commit 6697bd04f1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -234,6 +234,7 @@ if [ ! -z "$IS_SHA512SUM_CHECKED" ]; then
if dpkg -s "$package_name" >/dev/null 2>&1; then
echo "软件包已安装:$package_name"
create_desktop_file
unlock_file $DEBPATH
rm "$DEBPATH"
echo "${TRANSHELL_CONTENT_DEB_IS_DELETED}"
else