Debugging
This commit is contained in:
@@ -320,6 +320,7 @@ echo \"\${DISK_SIZE[@]}\"
|
|||||||
|
|
||||||
### --> Disk selection
|
### --> Disk selection
|
||||||
TOTAL_NUMBER_OF_DISKS=${#DISK_NAME[@]}
|
TOTAL_NUMBER_OF_DISKS=${#DISK_NAME[@]}
|
||||||
|
echo ${DISK_NAME[@]}
|
||||||
|
|
||||||
if [ "$TOTAL_NUMBER_OF_DISKS" -eq 0 ]; then
|
if [ "$TOTAL_NUMBER_OF_DISKS" -eq 0 ]; then
|
||||||
echo -e "\n\n ❌ No disks found on the target host. Aborting."
|
echo -e "\n\n ❌ No disks found on the target host. Aborting."
|
||||||
@@ -329,10 +330,10 @@ echo \"\${DISK_SIZE[@]}\"
|
|||||||
HEADER=$(printf " %-12s %-12s %-12s %-12s %s" "Device" "Type" "Size" "SMART" "Path")
|
HEADER=$(printf " %-12s %-12s %-12s %-12s %s" "Device" "Type" "Size" "SMART" "Path")
|
||||||
|
|
||||||
for i in $(seq 0 $(($TOTAL_NUMBER_OF_DISKS - 1))); do
|
for i in $(seq 0 $(($TOTAL_NUMBER_OF_DISKS - 1))); do
|
||||||
GUM_PRINTED_ELEMENT=$(printf "%-12s %-12s %-12s %-12s %s" \
|
GUM_PRINTED_ELEMENT=$(printf "%-12s %-12s %-12s %-12s %s" \
|
||||||
"${DISK_NAME[$i]}" "${DISK_TYPE[$i]}" "${DISK_SIZE[$i]}" \
|
"${DISK_NAME[$i]}" "${DISK_TYPE[$i]}" "${DISK_SIZE[$i]}" \
|
||||||
"${DISK_HEALTH[$i]}" "${DISK_DEVPATH[$i]}")
|
"${DISK_HEALTH[$i]}" "${DISK_DEVPATH[$i]}")
|
||||||
GUM_PRINTED_ELEMENTS+=("$GUM_PRINTED_ELEMENT")
|
GUM_PRINTED_ELEMENTS+=("$GUM_PRINTED_ELEMENT")
|
||||||
done
|
done
|
||||||
|
|
||||||
gum style --foreground 212 " ➡️ Please choose one (stripe) or two (mirror) disks for your NixOS boot installation :"
|
gum style --foreground 212 " ➡️ Please choose one (stripe) or two (mirror) disks for your NixOS boot installation :"
|
||||||
|
|||||||
Reference in New Issue
Block a user