about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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