From 784030da5296854e557d14b9447b7bba5717844a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 1 Aug 2023 19:54:48 +0300 Subject: [PATCH] Fix(ansible/cleanup-tmp.sh): Fix `*` Do not overprotect. --- playbooks/ansible/cleanup-tmp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/ansible/cleanup-tmp.sh b/playbooks/ansible/cleanup-tmp.sh index a706a8f..f6ae92d 100755 --- a/playbooks/ansible/cleanup-tmp.sh +++ b/playbooks/ansible/cleanup-tmp.sh @@ -3,9 +3,9 @@ LC_CTYPE=en_US.UTF-8 hosts="`\"$HOME\"/.virtualenvs/ansible/bin/ansible --list-hosts servers | tail -n +2`" echo localhost -rm -rf "$HOME"/.ansible/tmp/\* +rm -rf "$HOME"/.ansible/tmp/* for host in $hosts; do echo $host - ssh $host exec rm -rf .ansible/tmp/\* + ssh $host exec rm -rf .ansible/tmp/* done -- 2.39.5