summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-30 05:13:00 -0300
committerEuAndreh <eu@euandre.org>2024-08-30 05:13:00 -0300
commit7ecc05c5d21820f47627250e0111f665b75f813a (patch)
treefb986a384b78358136c36c5aa38b417df96afda7
parentsrc/reconfigure: Load /etc/rc.sh so we do not need a login shell (diff)
downloadsyskeep-7ecc05c5d21820f47627250e0111f665b75f813a.tar.gz
syskeep-7ecc05c5d21820f47627250e0111f665b75f813a.tar.xz
src/gc: Remove gc_deploy()
-rwxr-xr-xsrc/gc11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gc b/src/gc
index 74dab66..abfa1c8 100755
--- a/src/gc
+++ b/src/gc
@@ -3,7 +3,7 @@ set -eu
usage() {
cat <<-'EOF'
- Usage: gc [ guix | deploy | trash | tmpdir | logs | coredump ]
+ Usage: gc [ guix | trash | tmpdir | logs | coredump ]
EOF
}
@@ -20,14 +20,6 @@ gc_guix() {
guix gc -d 1m
}
-gc_deploy() {
- find /opt/deploy \
- ! -path /opt/deploy -prune \
- -type d \
- -not -name "$(timestamp)*" \
- -exec rm -rvf "{}" ';' ||:
-}
-
gc_trash() {
yes | trash-empty
}
@@ -47,7 +39,6 @@ gc_coredump() {
gc_all() {
gc_guix
- gc_deploy
gc_trash
gc_tmpdir
gc_logs