From ff95f13c9d3f3eafa3d4f5dac7b5db5757e3fa62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= <jeremy@asynk.ch>
Date: Tue, 4 Jun 2019 09:21:08 +0200
Subject: update : fix aurman cleanup

---
 update | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update b/update
index c38db82..5fd90e0 100755
--- a/update
+++ b/update
@@ -40,7 +40,7 @@ function update_pkgs() {
     sudo_run "pacman -Scc --noconfirm"
     sudo_run "pacman -Syu" || return
     sudo_run "rm /var/cache/pacman/pkg/*"
-    run "find .cache/aurman/ -type d -delete"
+    run "find .cache/aurman/ -maxdepth 1 -type d -exec rm -fr '{}' \;"
     run "aurman -Sc --noconfirm"
     run "aurman -Syu"
 }
-- 
cgit v1.1-2-g2b99