mirror of
https://github.com/tw93/Mole.git
synced 2026-03-23 02:00:08 +00:00
fix: move logs to ~/Library/Logs/mole, add system idle assets cleanup
- Move log files from ~/.config/mole/ to ~/Library/Logs/mole/ per
macOS convention. Fixes #569.
- Add safe_sudo_find_delete for /Library/Application Support/
com.apple.idleassetsd/Customer/ screensaver videos. Closes #570.
- Update tests to reflect new log file paths.
This commit is contained in:
@@ -206,7 +206,7 @@ EOF
|
||||
[ "$status" -eq 0 ]
|
||||
MOLE_OUTPUT="$output"
|
||||
|
||||
DEBUG_LOG="$HOME/.config/mole/mole_debug_session.log"
|
||||
DEBUG_LOG="$HOME/Library/Logs/mole/mole_debug_session.log"
|
||||
[ -f "$DEBUG_LOG" ]
|
||||
|
||||
run grep "Mole Debug Session" "$DEBUG_LOG"
|
||||
@@ -228,7 +228,7 @@ EOF
|
||||
run env HOME="$HOME" TERM="xterm-256color" MOLE_TEST_MODE=1 MO_DEBUG=1 "$PROJECT_ROOT/mole" clean --dry-run
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
DEBUG_LOG="$HOME/.config/mole/mole_debug_session.log"
|
||||
DEBUG_LOG="$HOME/Library/Logs/mole/mole_debug_session.log"
|
||||
|
||||
run grep "User:" "$DEBUG_LOG"
|
||||
[ "$status" -eq 0 ]
|
||||
|
||||
Reference in New Issue
Block a user