From 06440c5f0d718247d57eaeefebcd74d4d22e476c Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Tue, 4 Oct 2022 08:01:46 +0100
Subject: [PATCH] chore: delete result directory after running

---
 justfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/justfile b/justfile
index 7f2e8293..5405e796 100644
--- a/justfile
+++ b/justfile
@@ -1,13 +1,16 @@
 default:
   just --list
 
-apollo command *args:
+clean:
+  rm -rf ./result
+
+apollo command *args: && clean
   sudo nixos-rebuild {{ command }} --flake .#apollo {{ args }}
 
-pop-os command *args:
+pop-os command *args: && clean
   home-manager {{ command }} -f home-manager/home.nix --flake .#pop-os {{ args }}
 
-wsl2 command *args:
+wsl2 command *args: && clean
   home-manager {{ command }} -f home-manager/home.nix --flake .#wsl2 {{ args }}
 
 update *args: