From 7cf87bf1ee0d395b59200f1cf289977cc1725480 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Wed, 5 Jan 2022 17:11:10 +0100 Subject: [PATCH] bin/clean: ignore if command does not exist --- bin/clean.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/clean.sh b/bin/clean.sh index ac22462..7b41f78 100755 --- a/bin/clean.sh +++ b/bin/clean.sh @@ -8,16 +8,16 @@ case "$1" in $0 yay ;; docker) - docker system prune --force + docker system prune --force 2>/dev/null ;; nix) - nix-collect-garbage --delete-old + nix-collect-garbage --delete-old 2>/dev/null ;; pacman) - pacman -Sc --noconfirm + pacman -Sc --noconfirm 2>/dev/null ;; yay) - yay -Sacc --noconfirm + yay -Sacc --noconfirm 2>/dev/null ;; *) echo "Please give parameter of: [all docker nix pacman yay]"