Files
AndroidJetpack/animeko/ci-helper/cleanup-temp-files-macos.sh
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

24 lines
746 B
Bash

#!/bin/zsh
#
# Copyright (C) 2024 OpenAni and contributors.
#
# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
# Use of this source code is governed by the GNU AGPLv3 license, which can be found at the following link.
#
# https://github.com/open-ani/ani/blob/main/LICENSE
#
local TARGET_DIR
if [[ -n "$TMPDIR" ]]; then
echo "env TMPDIR exists."
TARGET_DIR="$TMPDIR"
else
TARGET_DIR="/private/var/folders/fv/b5h2b9f577q7z5j0r5n8n6g40000gp/T"
echo "env TMPDIR does not exist. Using $TARGET_DIR"
fi
# clear "debuginfo.knd1145141919810.tmp"
# strings.knt1145141919810.tmp
find $TARGET_DIR -type f -name "*.kn*.tmp" -exec rm {} + -print 2>/dev/null | wc -l