summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-25 18:46:33 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-25 18:46:33 +0100
commitcd51f00bfdc642a3d7e80f711747e144f0eced1e (patch)
treec1d07b56542e861e00eb3c4410413153997eea01
parentfix(modules/dhcpcd): Also set uid/gid for the `dhcpcd` user (diff)
downloadnixos-server-cd51f00bfdc642a3d7e80f711747e144f0eced1e.tar.gz
nixos-server-cd51f00bfdc642a3d7e80f711747e144f0eced1e.zip
fix(modules/nix-sync/internal): Fix syntax errors in shell-script
-rw-r--r--modules/by-name/ni/nix-sync/internal_module.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/by-name/ni/nix-sync/internal_module.nix b/modules/by-name/ni/nix-sync/internal_module.nix
index e3b55c9..4e28586 100644
--- a/modules/by-name/ni/nix-sync/internal_module.nix
+++ b/modules/by-name/ni/nix-sync/internal_module.nix
@@ -55,7 +55,7 @@
 
         out_paths=$(mktemp);
         nix build . --print-out-paths --experimental-features 'nix-command flakes' > "$out_paths";
-        [ "$(wc -l < "$out_paths")" -gt 1 ] && {echo "To many out-paths"; exit 1;}
+        [ "$(wc -l < "$out_paths")" -gt 1 ] && { echo "To many out-paths"; exit 1; }
         out_path="$(cat "$out_paths")";
         rm ${esa repoPath};
         ln -s "$out_path" ${esa repoPath};
@@ -71,7 +71,7 @@
 
           out_paths=$(mktemp);
           nix build ${esa repoCachePath} --print-out-paths --experimental-features 'nix-command flakes' > "$out_paths";
-          [ "$(wc -l < "$out_paths")" -gt 1 ] && {echo "To many out-paths"; exit 1;}
+          [ "$(wc -l < "$out_paths")" -gt 1 ] && { echo "To many out-paths"; exit 1; }
           out_path="$(cat "$out_paths")";
           ln -s "$out_path" ${esa repoPath};
           rm "$out_paths";