aboutsummaryrefslogtreecommitdiff
path: root/bin/gc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-07-12 20:50:09 -0300
committerEuAndreh <eu@euandre.org>2023-07-12 20:50:09 -0300
commitf73d76efa44462930ba966ca0f448b68a36bcd86 (patch)
tree1a9d576f8e483e8ec9eb48a9e95dd371e02e4cb4 /bin/gc
parentMove awscli package from guix to nix, from v1 to v2 (diff)
downloaddotfiles-f73d76efa44462930ba966ca0f448b68a36bcd86.tar.gz
dotfiles-f73d76efa44462930ba966ca0f448b68a36bcd86.tar.xz
bin/gc: Tolerate guix failing commands
Diffstat (limited to 'bin/gc')
-rwxr-xr-xbin/gc8
1 files changed, 5 insertions, 3 deletions
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
}