Skip to content

Commit

Permalink
Fix dialog command
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Dec 21, 2023
1 parent 4c3b464 commit 1a9bd3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/config_calaos-boot
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

set -e

NOCOLOR='\033[0m'
CYAN='\033[0;36m'
RED='\033[0;31m'
Expand Down Expand Up @@ -124,8 +122,9 @@ then
tmp_file2=$(mktemp 2>/dev/null) || tmp_file2=/tmp/tmp2$$
trap "rm -f $tmp_file $tmp_file2" 0 1 2 5 15

retvalue=$(dialog --backtitle "Calaos-OS Installer" --title "Calaos-OS Installer" \
--yesno "Do you want to install Calaos-OS?\n\nIf No, Calaos-OS Live will continue booting normally" 8 60)
dialog --backtitle "Calaos-OS Installer" --title "Calaos-OS Installer" \
--yesno "Do you want to install Calaos-OS?\n\nIf No, Calaos-OS Live will continue booting normally" 8 60
retvalue=$?
case $retvalue in
"$DIALOG_OK")
disks=()
Expand Down Expand Up @@ -159,7 +158,8 @@ then
done

# ask user to select a disk
retvalue=$(dialog --backtitle "Calaos-OS Installer" --title "Calaos-OS Installer" --radiolist "Select where to install Calaos OS::" 20 80 10 "${disks[@]}" 2> "$tmp_file")
dialog --backtitle "Calaos-OS Installer" --title "Calaos-OS Installer" --radiolist "Select where to install Calaos OS::" 20 80 10 "${disks[@]}" 2> "$tmp_file"
retvalue=$?
case $retvalue in
"$DIALOG_OK")
disk=$(cat "$tmp_file")
Expand Down

0 comments on commit 1a9bd3e

Please sign in to comment.