From bcc3c42fa78a4a80262ad21885404acab78f5504 Mon Sep 17 00:00:00 2001 From: Karl Hepworth Date: Wed, 24 Oct 2018 21:10:49 +1100 Subject: [PATCH] #9: Adds a command exit on find commands in the cache clear command --- handlers/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index e14f387..88b7cd1 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -4,8 +4,8 @@ - name: clear cache shell: "{{ item }}" with_items: - - 'sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {}' - - 'sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm -rf {}' + - 'sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \;' + - 'sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm -rf {} \;' - 'sudo rm -rf /Library/Caches/com.apple.iconservices.store' - name: restart dock