From e34ea114a350ea1ef66586308760010d5d72b668 Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler Date: Mon, 11 Oct 2021 11:04:57 +0200 Subject: [PATCH] fixed to_system.sh script Signed-off-by: Stefan Ellmauthaler --- to_system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to_system.sh b/to_system.sh index f147bc1..deddaea 100755 --- a/to_system.sh +++ b/to_system.sh @@ -5,7 +5,7 @@ cp configuration.nix /etc/nixos/. cp -r programs /etc/nixos/. mkdir -p /etc/nixos/machine -for machine in `exa --all -l machine | grep "^d" | cut -d" " -f8`; do +for machine in `ls -al machine | grep "^d" | rev | cut -d" " -f1 | rev`; do cp -r machine/$machine /etc/nixos/machine/. done