aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-25 15:07:04 -0300
committerEuAndreh <eu@euandre.org>2021-07-25 15:07:04 -0300
commit635c81b04230c79774ed589ae1362f7c2b647812 (patch)
tree535a19788cb712ebe3a4a3e128919df0c3389e74
parentssh.conf: Add commented useful debug line (diff)
downloadserver-635c81b04230c79774ed589ae1362f7c2b647812.tar.gz
server-635c81b04230c79774ed589ae1362f7c2b647812.tar.xz
opt/bin/gc.sh: Use set -x option and remove /tmp
-rwxr-xr-xopt/bin/gc.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/opt/bin/gc.sh b/opt/bin/gc.sh
index ad025f6..86f5895 100755
--- a/opt/bin/gc.sh
+++ b/opt/bin/gc.sh
@@ -1,6 +1,7 @@
#!/bin/sh
-set -eu
+set -eux
nix-store --gc
nix-collect-garbage -d
guix gc -d
+rm -rf /tmp/