diff options
author | EuAndreh <eu@euandre.org> | 2023-07-12 20:50:09 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-07-12 20:50:09 -0300 |
commit | f73d76efa44462930ba966ca0f448b68a36bcd86 (patch) | |
tree | 1a9d576f8e483e8ec9eb48a9e95dd371e02e4cb4 | |
parent | Move awscli package from guix to nix, from v1 to v2 (diff) | |
download | dotfiles-f73d76efa44462930ba966ca0f448b68a36bcd86.tar.gz dotfiles-f73d76efa44462930ba966ca0f448b68a36bcd86.tar.xz |
bin/gc: Tolerate guix failing commands
-rwxr-xr-x | bin/gc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 } |