Skip to content

Commit 35cdb4c

Browse files
committed
Flow enhancements
1 parent fe02aa3 commit 35cdb4c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

installer/installer.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ function showPlatformNotSupported() {
104104
function showMenuMain() {
105105
local result=$(dialog --title "$title" \
106106
--cancel-label "Exit" \
107-
--menu "Choose an option:" 15 50 3 \
107+
--menu "Choose an option:" 15 50 6 \
108108
1 "Install" \
109109
2 "Detect SDRs" \
110-
3 "Configure SDR assignments" \
110+
3 "Assign SDRs to decoders" \
111111
4 "Configure feeds" \
112112
5 "Health check" 2>&1 1>&3)
113113
echo "$result"
@@ -116,7 +116,7 @@ function showMenuMain() {
116116
function showMenuInstall() {
117117
local result=$(dialog --title "$title" \
118118
--cancel-label "Back" \
119-
--menu "Choose an option:" 15 50 3 \
119+
--menu "Choose an option:" 15 50 4 \
120120
1 "Install by compiling" \
121121
2 "Install with Docker" \
122122
3 "Install with packages" \
@@ -182,6 +182,12 @@ do
182182

183183
if [ "$result" = "1" ]; then
184184
selections=$(showMenuInstallDecoders)
185+
echo "Installing decoders: $selections"
186+
187+
if [ "$selections" == "" ]; then
188+
continue
189+
fi
190+
185191
for selection in $selections
186192
do
187193
case $selection in
@@ -218,6 +224,7 @@ do
218224
;;
219225
esac
220226
done
227+
221228
dialog --title "Success" --msgbox "Decoders installed" 6 50
222229
fi
223230

0 commit comments

Comments
 (0)