From 250536d8a244374c09eaeb4ad4cafe3cb214c75d Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Tue, 17 Oct 2023 13:36:43 +0200 Subject: [PATCH] fix: fixed shellcheck warnings --- cleanup/cleanup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cleanup/cleanup.sh b/cleanup/cleanup.sh index f7b865d..f50fea5 100644 --- a/cleanup/cleanup.sh +++ b/cleanup/cleanup.sh @@ -10,8 +10,8 @@ find /var/tmp -type d -name 'systemd-*-systemd-timesyncd.service*' -exec rm -rf find /var/lib/apt -type f -delete find /var/cache/apt -type f -delete find /var/log -type f -regextype posix-extended -regex '.*\.(gz|xz|[0-9])' -delete -truncate -s0 $HOME/.bash_history -[ -w $HOME/.zsh_history ] && truncate -s0 $HOME/.zsh_history +truncate -s0 "$HOME"/.bash_history +[ -w "$HOME"/.zsh_history ] && truncate -s0 "$HOME"/.zsh_history find /var/log -type f -exec truncate -s0 '{}' '+' dd if=/dev/zero of=/emptyfile oflag=dsync status=progress bs=4M; rm -f /emptyfile;