fix: Ignore empty version file

This commit is contained in:
Kroese 2024-04-19 22:38:57 +02:00 committed by GitHub
parent 1e65b649f1
commit c2084f18ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1096,8 +1096,9 @@ bootWindows() {
local creation="1.10"
local minimal="2.14"
if [ -s "$STORAGE/windows.ver" ]; then
if [ -f "$STORAGE/windows.ver" ]; then
creation=$(<"$STORAGE/windows.ver")
[[ "${creation}" != *"."* ]] && creation="$minimal"
fi
# Force secure boot on installations created prior to v2.14