about summary refs log tree commit diff stats
path: root/bootstrap
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-21 08:37:04 +0100
committerene <ene@sils.li>2023-02-21 08:37:04 +0100
commit5cd9305a3da3541cf7a8927b91f1f8c5c12acd15 (patch)
tree1fb8ece34f2895dd198aa29f610d553ccd3a4899 /bootstrap
parentStyle(autoformat): Formatting with alejandra (diff)
downloadnixos-config-5cd9305a3da3541cf7a8927b91f1f8c5c12acd15.tar.gz
nixos-config-5cd9305a3da3541cf7a8927b91f1f8c5c12acd15.zip
Fix(bootstrap): Type error in activate.sh
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/activate/activate.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/bootstrap/activate/activate.sh b/bootstrap/activate/activate.sh
index c3724807..a9e6f99a 100755
--- a/bootstrap/activate/activate.sh
+++ b/bootstrap/activate/activate.sh
@@ -30,8 +30,7 @@ while ! jq -e --argjson i "$i" '.[$i]' "$available_disks" > /dev/null 2>&1; do
         i="$disk"
     fi
     if jq -e --argjson i "$i" 'nth($i)' "$available_disks"  > /dev/null 2>&1; then
-        disk=$(mktmp);
-        jq -e --argjson i "$i" 'nth($i)' "$available_disks" > "$disk";
+        disk="$(jq -e --argjson i "$i" 'nth($i) | .item' "$available_disks" | tr -d "\"")";
     else
         warning "No disk selected. Select a disk to continue.\n"
     fi