about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbootstrap/install4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap/install b/bootstrap/install
index a5d3aeb2..7ec982bc 100755
--- a/bootstrap/install
+++ b/bootstrap/install
@@ -112,9 +112,9 @@ case $result in
 
             [ $host = "q" ] && exit 1
             if awk -v host $host '{$0 ~ host}' "$hosts" && [ "$host" != "" ]; then
-                host=$(awk -v i $host 'NR==i' "$hosts");
+                host=$(awk -v i="$host" '{if (NR==i) {print $0}}' "$hosts");
             else
-                warning "No disk selected. Select a disk to continue.\n"
+                warning "No host selected. Select a host to continue.\n"
             fi
         done
         nixos-install --flake git+https://git.sils.li/ene/nixos-config#${host} --no-root-passwd