Skip to content

Commit

Permalink
fix: Prevent dialog from failing when PREEMPT_RT is not available for…
Browse files Browse the repository at this point in the history
… given Debian version
  • Loading branch information
2b-t committed Oct 11, 2023
1 parent 80365b9 commit 1062a96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib_install_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ function select_debian_version() {
local DIALOG_POSSIBLE_DEBIAN_VERSIONS=""
for VER in ${POSSIBLE_DEBIAN_VERSIONS}; do
local PREEMPTRT_FILE=$(get_preemptrt_file "$VER")
DIALOG_POSSIBLE_DEBIAN_VERSIONS="${DIALOG_POSSIBLE_DEBIAN_VERSIONS} ${VER} ${PREEMPTRT_FILE}"
if [ ! -z "${PREEMPTRT_FILE}" ]; then
DIALOG_POSSIBLE_DEBIAN_VERSIONS="${DIALOG_POSSIBLE_DEBIAN_VERSIONS} ${VER} ${PREEMPTRT_FILE}"
fi
done
echo $(dialog --keep-tite --stdout --menu "Select the desired PREEMPT_RT kernel version:" 0 0 4 ${DIALOG_POSSIBLE_DEBIAN_VERSIONS})
}
Expand Down

0 comments on commit 1062a96

Please sign in to comment.