From f58e81b50938f38418eddd85d9dfb95ce5716d92 Mon Sep 17 00:00:00 2001 From: Nico Jensch Date: Fri, 3 Nov 2023 20:11:43 +0100 Subject: [PATCH] fix: don't always fail chaotictrigger second case --- nixos/hosts/repo.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/hosts/repo.nix b/nixos/hosts/repo.nix index caa04738..858ec57b 100644 --- a/nixos/hosts/repo.nix +++ b/nixos/hosts/repo.nix @@ -10,8 +10,10 @@ let chaotic -j 4 routine garuda ;; "chaotictrigger"* ) - chaotic get "$1" - chaotic mkd "$1" + git clone https://gitlab.com/garuda-linux/pkgbuilds /tmp/chaotictrigger + cd /tmp/chaotictrigger + chaotic mkd $(echo "$SSH_ORIGINAL_COMMAND" | cut -d' ' -f2-) + rm -rf /tmp/chaotictrigger ;; *) echo "Access only allowed for building purposes!"