init.sh: remove TODO note

on further inspection, the following check ensures that the
python version number is 3.

if anything went wrong, the possibility alluded to in the
comment wouldn't actually matter in practise.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-09-25 23:54:16 +01:00
parent 0303167e25
commit f5060232e1
-3
View File
@@ -299,9 +299,6 @@ xbmk_set_pyver()
fi fi
if [ -n "$pyver" ]; then if [ -n "$pyver" ]; then
# TODO: very sus; possible holes in error management
# TODO: maybe use sed?
pyver="$("$(pybin "$python")" -c "$pyv" | awk '{print $1}')" pyver="$("$(pybin "$python")" -c "$pyv" | awk '{print $1}')"
pyver="${pyver#(}" pyver="${pyver#(}"
pyver="${pyver%,}" pyver="${pyver%,}"