mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +02:00
bin/clean: ignore if command does not exist
This commit is contained in:
parent
205570fa60
commit
7cf87bf1ee
1 changed files with 4 additions and 4 deletions
|
@ -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]"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue