From 5cd9305a3da3541cf7a8927b91f1f8c5c12acd15 Mon Sep 17 00:00:00 2001 From: ene Date: Tue, 21 Feb 2023 08:37:04 +0100 Subject: Fix(bootstrap): Type error in activate.sh --- bootstrap/activate/activate.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bootstrap') 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 -- cgit 1.4.1