diff options
author | ene <ene@sils.li> | 2023-02-21 08:37:04 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-21 08:37:04 +0100 |
commit | 5cd9305a3da3541cf7a8927b91f1f8c5c12acd15 (patch) | |
tree | 1fb8ece34f2895dd198aa29f610d553ccd3a4899 | |
parent | Style(autoformat): Formatting with alejandra (diff) | |
download | nixos-config-5cd9305a3da3541cf7a8927b91f1f8c5c12acd15.tar.gz nixos-config-5cd9305a3da3541cf7a8927b91f1f8c5c12acd15.zip |
Fix(bootstrap): Type error in activate.sh
Diffstat (limited to '')
-rwxr-xr-x | bootstrap/activate/activate.sh | 3 |
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 |