|
@@ -1309,10 +1309,14 @@ function select_user {
|
1309
|
1309
|
fi
|
1310
|
1310
|
done
|
1311
|
1311
|
|
1312
|
|
- user_index=$(dialog --backtitle $"Freedombone Configuration" --title $"Select User" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
|
1312
|
+ if [ $i -eq 1 ]; then
|
|
1313
|
+ SELECTED_USERNAME="${name[0]}"
|
|
1314
|
+ else
|
|
1315
|
+ user_index=$(dialog --backtitle $"Freedombone Configuration" --title $"Select User" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
1313
|
1316
|
|
1314
|
|
- if [ $? -eq 0 ]; then
|
1315
|
|
- SELECTED_USERNAME="${name[$((user_index-1))]}"
|
|
1317
|
+ if [ $? -eq 0 ]; then
|
|
1318
|
+ SELECTED_USERNAME="${name[$((user_index-1))]}"
|
|
1319
|
+ fi
|
1316
|
1320
|
fi
|
1317
|
1321
|
}
|
1318
|
1322
|
|