From f73d76efa44462930ba966ca0f448b68a36bcd86 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 12 Jul 2023 20:50:09 -0300 Subject: bin/gc: Tolerate guix failing commands --- bin/gc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/gc b/bin/gc index ccc3d96..59a9eff 100755 --- a/bin/gc +++ b/bin/gc @@ -83,12 +83,14 @@ gc_guix() { return fi - guix home delete-generations 1m + guix home delete-generations 1m ||: guix gc -d 1m if [ -e /var/guix/profiles/system ]; then - pass show "$(hostname)"/andreh | head -n1 | sudo -iS guix system delete-generations 1m - pass show "$(hostname)"/andreh | head -n1 | sudo -iS guix gc -d 1m + pass show "$(hostname)"/andreh | head -n1 | + sudo -iS guix system delete-generations 1m ||: + pass show "$(hostname)"/andreh | head -n1 | + sudo -iS guix gc -d 1m ||: fi } -- cgit v1.2.3