Fix doom purge reporting failure despite success
This commit is contained in:
parent
a3e262c7ac
commit
f8c4d075a5
1 changed files with 6 additions and 6 deletions
|
@ -286,12 +286,12 @@ a list of packages that will be updated."
|
|||
(dolist (it packages)
|
||||
(print! (info "Deleting %s/%s") label it)
|
||||
(dolist (path (list ,@files))
|
||||
(if (file-directory-p path)
|
||||
(delete-directory path 'recursive)
|
||||
(cond ((file-directory-p path)
|
||||
(delete-directory path 'recursive))
|
||||
((file-regular-p path)
|
||||
(delete-file path)))
|
||||
(if (file-exists-p path)
|
||||
(delete-file path)
|
||||
(print! (error "Failed to find %s/%s") label it)))
|
||||
(unless (file-exists-p path)
|
||||
(print! (error "Failed to find %s/%s") label it)
|
||||
(cl-incf n))))
|
||||
(if (= n 0)
|
||||
(ignore (print! (warn "Didn't prune any %s(s) for some reason" label)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue