From 1e5321834dc757b6d97d5a0a2d95e4762669021b Mon Sep 17 00:00:00 2001 From: shenmo Date: Wed, 17 Sep 2025 12:48:23 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E4=BD=BF=E7=94=A8ap?= =?UTF-8?q?tss=E5=90=8E=E5=9C=A8/tmp=E4=B8=8B=E7=95=99=E4=B8=8B=E5=9E=83?= =?UTF-8?q?=E5=9C=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenmo --- tool/apt-fast/ss-apt-fast | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tool/apt-fast/ss-apt-fast b/tool/apt-fast/ss-apt-fast index 2832d5b..57e10fa 100755 --- a/tool/apt-fast/ss-apt-fast +++ b/tool/apt-fast/ss-apt-fast @@ -79,12 +79,17 @@ cleanup_aptfast() [ "$CLEANUP_STATE" -eq 0 ] && CLEANUP_STATE=$last_exit_code cleanup_dllist _remove_lock + # 添加删除临时目录的逻辑 + if [ -n "$LISTTEMP" ] && [ -d "$LISTTEMP" ]; then + rm -rf "$LISTTEMP" + fi } - exit_cleanup_state() { + cleanup_aptfast exit $CLEANUP_STATE } + LCK_FD=99 # create the lock file and lock it, die on failure _create_lock()