diff options
author | Soispha <soispha@vhack.eu> | 2023-05-28 22:09:21 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-28 22:09:21 +0200 |
commit | 1f79cb3c844a4e03ad0bf2f8f18518d437caaa27 (patch) | |
tree | ebabfb23296e87bd8d2747efad62cb7591ca3871 /bootstrap/setup/setup.sh | |
parent | Build(flake): Update (diff) | |
download | nixos-config-1f79cb3c844a4e03ad0bf2f8f18518d437caaa27.tar.gz nixos-config-1f79cb3c844a4e03ad0bf2f8f18518d437caaa27.zip |
Fix(bootstrap): Quote scripts
Diffstat (limited to 'bootstrap/setup/setup.sh')
-rwxr-xr-x | bootstrap/setup/setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/setup/setup.sh b/bootstrap/setup/setup.sh index 803123e3..bc171303 100755 --- a/bootstrap/setup/setup.sh +++ b/bootstrap/setup/setup.sh @@ -6,7 +6,7 @@ msg "Select a host-config:" hosts=$(mktmp); host=""; -curl https://codeberg.org/soispha/nixos-config/raw/branch/prime/flake/nixosConfigurations/default.nix 2> /dev/null | awk -F '"' '/hosts = /{for (i=2;i<NF;i+=2) {print $i}}' > $hosts; +curl https://codeberg.org/soispha/nixos-config/raw/branch/prime/flake/nixosConfigurations/default.nix 2> /dev/null | awk -F '"' '/hosts = /{for (i=2;i<NF;i+=2) {print $i}}' > "$hosts"; while ! grep "$host" "$hosts" > /dev/null || [ "$(printf "%s" "$host" | wc -c)" -eq 0 ]; do i=1; |