1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-24 03:15:06 +00:00

test: fix update and cache cleanup cases

This commit is contained in:
tw93
2026-03-07 20:03:11 +08:00
parent 300aded07b
commit d189e1b84f
2 changed files with 4 additions and 3 deletions

View File

@@ -177,7 +177,8 @@ EOF
[ "$status" -eq 0 ]
[[ "$output" == *"Next.js build cache"* ]]
grep -q -- "-P $HOME/CustomProjects " "$find_log"
! grep -q -- "-P $HOME " "$find_log"
run grep -q -- "-P $HOME " "$find_log"
[ "$status" -eq 1 ]
rm -rf "$HOME/CustomProjects" "$HOME/.config/mole" "$fake_bin" "$find_log"
}