Skip to content

Commit 088472c

Browse files
committed
优化 apktool 反编译脚本的代码逻辑
1 parent ff8802d commit 088472c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shell/reverse-tools/apktool/DecompileApk.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ waitUserInputParameter() {
5151
while true; do
5252
read -r rewriteConfirm
5353
if [[ "${rewriteConfirm}" =~ ^[yY]$ ]]; then
54+
rm -rf "${apkDecompileDirPath:?}"
55+
mkdir -p "${apkDecompileDirPath}"
5456
break
5557
elif [[ "${rewriteConfirm}" =~ ^[nN]$ ]]; then
5658
apkDecompileDirPath="${apkDecompileDirPath}${decompileDirNameSuffix}"

0 commit comments

Comments
 (0)